[PATCH] Add wtmp and -w option to halt
Roy Marples
roy at marples.name
Wed Jan 23 08:00:58 PST 2008
Hi List
Gentoo currently uses halt -w to record a system shutdown action in wtmp
but not actually shut the system down at this point. Attached is a patch
that enables this for busybox halt. If this patch is not accepted, then
please consider silently accepting the -w option so a Gentoo shutdown is
a bit cleaner using busybox.
sysvinit halt also has the -d option, which means "Don't write a wtmp
record", however this conflicts with busybox where -d means delay. This
patch does not address this. Maybe there should be a shutdown applet
with the delay option to mirror sysvinit and BSD instead.
Thanks
Roy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-halt.patch
Type: text/x-patch
Size: 2083 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080123/d9ba7b18/attachment.bin
More information about the busybox
mailing list