On Tuesday 21 July 2009 23:31, Alexander Shishkin wrote: > In case our init is not a busybox applet, but an external program > like SysV init or upstart, we'd want to be able to call telinit > (or somesuch) to switch to an appropriate runlevel instead of > simply rebooting (or otherwise shutting down).
I am torn on this. Can't it be achieved much simpler, e.g. /bin/reboot: #!/bin/sh test x"$1" = x"-f" && /bin/busybox reboot "$@" exec telinit 6 ? -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
