Punt halt init script. sysvinit should install it. See Gentoo bug #246502 on how to handle this.

This commit is contained in:
Roy Marples 2008-11-12 16:28:07 +00:00
parent fe509db660
commit df22978de9
4 changed files with 0 additions and 32 deletions

1
init.d/.gitignore vendored
View File

@ -2,7 +2,6 @@ bootmisc
devfs devfs
dmesg dmesg
fsck fsck
halt
hostname hostname
killprocs killprocs
local local

View File

@ -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 \ modules.in mount-ro.in mtab.in numlock.in procfs.in sysfs.in \
termencoding.in termencoding.in
# This really belongs with sysvinit
SRCS+= halt.in
.SUFFIXES: .Linux.in .SUFFIXES: .Linux.in
.Linux.in: .Linux.in:
sed ${SED_REPLACE} ${SED_EXTRA} $< > $@ sed ${SED_REPLACE} ${SED_EXTRA} $< > $@

View File

@ -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
}

View File

@ -1,6 +1,3 @@
SYSINIT+= devfs dmesg SYSINIT+= devfs dmesg
BOOT+= hwclock keymaps modules mtab net.lo procfs termencoding BOOT+= hwclock keymaps modules mtab net.lo procfs termencoding
SHUTDOWN+= killprocs mount-ro SHUTDOWN+= killprocs mount-ro
# This really belongs with sysvinit
SHUTDOWN+= halt