aboutsummaryrefslogtreecommitdiff
path: root/sh/init-common-post.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'sh/init-common-post.sh.in')
-rw-r--r--sh/init-common-post.sh.in12
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}