Quote:
Originally Posted by bakunin
First off, the command to switch runlevels is not "init", but "telinit".
FYI this is not strictly true on Suns. The telinit command (/etc/telinit) is simply a soft link to /sbin/init. So strickly speaking init it the command and telinit is the alias.
Does ths shutdown command do the same thing for you? You can change system runtime levels with it in much the same way as init except there is a slight delay even if you specify 0 delay :-)
For init level 0, no wait time, dont ask for confirmation:
shutdown -g0 -i0 -y
For init level 6, no wait time, dont ask for confirmation:
shutdown -g0 -i6 -y