marklar lives?

If there was any doubt that OS X runs on other hardware, why would StartupItems need to check for the hardware it’s running on?


ARCH=$(uname -p)


SetBootCommand()
{
local BootCommand="$*"

if [ $ARCH = "powerpc" ]; then
if nvram "${BootArgsVar}"="${BootCommand}" then
shutdown -r now
else
echo "Warning: Failed to set boot-command"
echo "Warning: Continuing startup"
fi
fi
}

uname -p returns “powerpc” on my OS X machine: on a FreeBSD system, it returns “i386.”

Yes, I know Darwin runs on x86 hardware. It only seems to be in the SystemTuning bundle which seems to deal with OS X server specific applications (QuickTimeStreaming Server, for example).