init,halt: portability improvements
authorJeremie Koenig <jk@jk.fr.eu.org>
Thu, 27 May 2010 13:38:44 +0000 (15:38 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Jul 2010 22:45:51 +0000 (00:45 +0200)
commit714674e4da3d92c5dd14e00ab30794a895b91eb4
tree0d27bc73f1f2fe0175c5fc948451b86c52f9bb90
parentf812eace1863feeac64dc8af27f4ab0f98119618
init,halt: portability improvements

* make init and halt use the same RB_* constants for reboot()
* conditionalize the Linux-specific code

Inspired by init.init.diff from the Debian kFreeBSD patches at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian

Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
init/Config.src
init/halt.c
init/init.c
init/reboot.h [new file with mode: 0644]