[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Can you tell if client is i386 or PPC?



On Fri, 14 Jul 2006, Robert Arkiletian wrote:

I am just finishing Fl_TeacherTool 0.33. I need some help to figure
out is there any way to discover if a certain client defined by
hostname wsxxx.ltsp or it's ip is either i386 or PPC?
Or maybe some env variable?

The only thing I can think of is the kernel version, the apples have
"ppc" in the kernel name. This might work (untested)...

	ip=192.168.0.1
	if [ "`/usr/bin/ltspinfo -h $ip -c KERNEL_VERSION | grep -i ppc`" ]; then
		echo "ppc"
	else
		echo "i386"
	fi


-Eric


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]