2007-04-05 16:48:42 +05:30
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
# mount $svcdir as something we can write to if it's not rw
|
|
|
|
# On vservers, / is always rw at this point, so we need to clean out
|
|
|
|
# the old service state data
|
2007-09-24 20:58:48 +05:30
|
|
|
if mkdir "${RC_SVCDIR}/.test.$$" 2>/dev/null ; then
|
|
|
|
rmdir "${RC_SVCDIR}/.test.$$"
|
|
|
|
rm -rf $(ls -d1 "${RC_SVCDIR:-/lib/rcscripts/init.d}"/* 2>/dev/null | \
|
2007-10-31 21:16:56 +05:30
|
|
|
grep -Ev "/(deptree|ksoftlevel|rc.log)$")
|
2007-04-05 16:48:42 +05:30
|
|
|
else
|
|
|
|
mount_svcdir
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "sysinit" > "${RC_SVCDIR}/softlevel"
|
|
|
|
|
|
|
|
# sysinit is now done, so allow init scripts to run normally
|
|
|
|
[ -e /dev/.rcsysinit ] && rm -f /dev/.rcsysinit
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
# vim: set ts=4 :
|