Add a new shutdown runlevel, Gentoo #224537.

Split halt.sh into halt, killprocs, romount and savecache services.
The reboot runlevel is removed but mapped to shutdown.
The halt script should be moved to the sysvinit package.
This commit is contained in:
Roy Marples
2008-11-03 15:31:01 +00:00
parent 895c4f4149
commit 0af7d5bc20
19 changed files with 199 additions and 210 deletions

View File

@@ -1,11 +1,13 @@
BOOT= bootmisc fsck hostname localmount \
root swap sysctl urandom
DEFAULT= local netmount
SHUTDOWN= savecache
LEVELDIR= ${DESTDIR}/${SYSCONFDIR}/runlevels
SYSINITDIR= ${LEVELDIR}/sysinit
BOOTDIR= ${LEVELDIR}/boot
DEFAULTDIR= ${LEVELDIR}/default
SHUTDOWNDIR= ${LEVELDIR}/shutdown
INITDIR= ../init.d
@@ -44,6 +46,14 @@ install:
fi; \
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
fi
if ! test -d "${SHUTDOWNDIR}"; then \
${INSTALL} -d ${SHUTDOWNDIR} || exit $$?; \
for x in ${SHUTDOWN}; do \
if test -n "${PREFIX}"; then \
grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \
fi; \
ln -snf ${PREFIX}/etc/init.d/"$$x" ${SHUTDOWNDIR}/"$$x" || exit $$?; done \
fi
check test::

View File

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