--- In Jim Jackson <> wrote:
> >
> > /sbin/halt worked.... I'm running busybox 1.2.1, so init 0 doesn't
> > work.... (Busybox doesn't do runlevels.)
>
> Sorry?
>
> BusyBox v1.00-rc3 (2006.02.20-14:02+0000) Built-in shell (ash)
> Enter 'help' for a list of built-in commands.
>
> scandium# init 0
> INIT: Switching to runlevel: 0
> INIT: Sending processes the TERM signal
> INIT: Sending processes the KI
> The system is going down NOW !!
> Sending SIGTERM to all processes.
> INIT: no more processes left in this runlevel
> Sending SIGKILL to all processes.
> flushing ide devices: hda
> System halted.
>
If you're using the TS file system, TS uses the standard sysv init,
and not the one from busybox. They did this to get around a nasty
insmod bug that made loading modules impossible. This bug was
introduced into busybox sometime around 0.9 and was fixed by 1.1.
So... From the current busybox docs:
init
init
Init is the parent of all processes.
This version of init is designed to be run only by the kernel.
BusyBox init doesn't support multiple runlevels. The runlevels
field of the /etc/inittab file is completely ignored by BusyBox init.
If you want runlevels, use sysvinit.
If you're using busybox init as I am, you cannot change runlevels.
The busybox init doesn't support any arguments:
root:~> init 0
BusyBox v1.2.1 (2007.01.10-00:14+0000) multi-call binary
Usage: init
root:~>
(I fought with this early on in my development cycle... I wanted a
pure busybox system, as building the sysv init as a standalone app is
a PITA...)
--Yan
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|