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 /init.d | |
parent | fe509db6607ded1812f0e2ada4e138eeff458c20 (diff) | |
download | openrc-df22978de96c979c81feff80a54ef8d21b5fdeab.tar.gz openrc-df22978de96c979c81feff80a54ef8d21b5fdeab.tar.bz2 openrc-df22978de96c979c81feff80a54ef8d21b5fdeab.tar.xz |
Punt halt init script. sysvinit should install it. See Gentoo bug #246502 on how to handle this.
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/.gitignore | 1 | ||||
-rw-r--r-- | init.d/Makefile.Linux | 3 | ||||
-rw-r--r-- | init.d/halt.in | 25 |
3 files changed, 0 insertions, 29 deletions
diff --git a/init.d/.gitignore b/init.d/.gitignore index 626d7a2..a74b960 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 fa4a6d0..5e57426 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 d92ce5f..0000000 --- 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 -} |