diff options
author | Roy Marples <roy@marples.name> | 2008-11-03 15:31:01 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-11-03 15:31:01 +0000 |
commit | 0af7d5bc204cd6b7d03f22aacf4072c5f526c0ee (patch) | |
tree | aa819c4140f8c34bd3814ae5894a8b6214fff914 /runlevels/Makefile | |
parent | 895c4f41492199d6aee75bb6c5a935134d67c29e (diff) | |
download | openrc-0af7d5bc204cd6b7d03f22aacf4072c5f526c0ee.tar.gz openrc-0af7d5bc204cd6b7d03f22aacf4072c5f526c0ee.tar.bz2 openrc-0af7d5bc204cd6b7d03f22aacf4072c5f526c0ee.tar.xz |
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.
Diffstat (limited to 'runlevels/Makefile')
-rw-r--r-- | runlevels/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile index 9e3131a..b8a830a 100644 --- a/runlevels/Makefile +++ b/runlevels/Makefile @@ -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:: |