diff options
author | Roy Marples <roy@marples.name> | 2008-11-12 16:28:07 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-11-12 16:28:07 +0000 |
commit | df22978de96c979c81feff80a54ef8d21b5fdeab (patch) | |
tree | 40122a2c18a4c882bd48379872a9b601a03a29ee | |
parent | fe509db6607ded1812f0e2ada4e138eeff458c20 (diff) |
Punt halt init script. sysvinit should install it. See Gentoo bug #246502 on how to handle this.
-rw-r--r-- | init.d/.gitignore | 1 | ||||
-rw-r--r-- | init.d/Makefile.Linux | 3 | ||||
-rw-r--r-- | init.d/halt.in | 25 | ||||
-rw-r--r-- | runlevels/Makefile.Linux | 3 |
4 files changed, 0 insertions, 32 deletions
diff --git a/init.d/.gitignore b/init.d/.gitignore index 626d7a2e..a74b9601 100644 --- a/init.d/.gitignore +++ b/init.d/.gitignore @@ -2,7 +2,6 @@ bootmisc devfs dmesg fsck -halt hostname killprocs local diff --git a/init.d/Makefile.Linux b/init.d/Makefile.Linux index fa4a6d09..5e574264 100644 --- a/init.d/Makefile.Linux +++ b/init.d/Makefile.Linux @@ -4,9 +4,6 @@ SRCS+= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in killprocs.in \ modules.in mount-ro.in mtab.in numlock.in procfs.in sysfs.in \ termencoding.in -# This really belongs with sysvinit -SRCS+= halt.in - .SUFFIXES: .Linux.in .Linux.in: sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ diff --git a/init.d/halt.in b/init.d/halt.in deleted file mode 100644 index d92ce5fa..00000000 --- a/init.d/halt.in +++ /dev/null @@ -1,25 +0,0 @@ -#!@PREFIX@/sbin/runscript -# Copyright 2007-2008 Roy Marples <roy@marples.name> -# All rights reserved. Released under the 2-clause BSD license. - -# This script really belongs with the Linux sysvinit package -description="Halt or reboot the host depending on sysvinit runlevel." - -depend() -{ - after * - use mount-ro - keyword noprefix -} - -start() -{ - case "${RUNLEVEL}" in - 0) runlevel=shutdown;; - 6) runlevel=reboot;; - *) eerror "Unknown runlevel ${RUNLEVEL}"; return 1 - esac - - . /etc/init.d/"${runlevel}".sh - return 0 -} diff --git a/runlevels/Makefile.Linux b/runlevels/Makefile.Linux index 2143a7e0..9876cd2b 100644 --- a/runlevels/Makefile.Linux +++ b/runlevels/Makefile.Linux @@ -1,6 +1,3 @@ SYSINIT+= devfs dmesg BOOT+= hwclock keymaps modules mtab net.lo procfs termencoding SHUTDOWN+= killprocs mount-ro - -# This really belongs with sysvinit -SHUTDOWN+= halt |