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 /sh/init-common-post.sh.in | |
parent | 895c4f41492199d6aee75bb6c5a935134d67c29e (diff) |
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 'sh/init-common-post.sh.in')
-rw-r--r-- | sh/init-common-post.sh.in | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sh/init-common-post.sh.in b/sh/init-common-post.sh.in index 2b1641df..aa264aa3 100644 --- a/sh/init-common-post.sh.in +++ b/sh/init-common-post.sh.in @@ -9,17 +9,15 @@ retval=0 RC_SVCDIR=${RC_SVCDIR:-/@LIB@/rc/init.d} if [ "${RC_SVCDIR}" != "/" ] && mkdir "${RC_SVCDIR}/.test.$$" 2>/dev/null; then rmdir "${RC_SVCDIR}/.test.$$" - for x in ${RC_SVCDIR}/*; do - [ -e "${x}" ] || continue - case ${x##*/} in - depconfig|deptree|ksoftlevel|rc.log);; - *) rm -rf "${x}";; - esac - done + rm -rf "${RC_SVCDIR}"/* else mount_svcdir retval=$? fi +if [ -e "${RC_LIBDIR}"/cache/deptree ]; then + cp -p "${RC_LIBDIR}"/cache/* "${RC_SVCDIR}" 2>/dev/null +fi + echo "sysinit" > "${RC_SVCDIR}/softlevel" exit ${retval} |