/[baselayout]/trunk/sh/init-common-post.sh
Gentoo

Contents of /trunk/sh/init-common-post.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2775 - (show annotations) (download) (as text)
Fri Jul 13 00:04:20 2007 UTC (6 years, 9 months ago) by uberlord
File MIME type: text/x-sh
File size: 658 byte(s)
Use echo instead of touch - saves on forking
1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 # mount $svcdir as something we can write to if it's not rw
5 # On vservers, / is always rw at this point, so we need to clean out
6 # the old service state data
7 if echo 2>/dev/null >"${RC_SVCDIR}/.test.$$" ; then
8 rm -rf "${RC_SVCDIR}/.test.$$" \
9 $(ls -d1 "${RC_SVCDIR:-/lib/rcscripts/init.d}"/* 2>/dev/null | \
10 grep -Ev "/(deptree|ksoftlevel)$")
11 else
12 mount_svcdir
13 fi
14
15 echo "sysinit" > "${RC_SVCDIR}/softlevel"
16
17 # sysinit is now done, so allow init scripts to run normally
18 [ -e /dev/.rcsysinit ] && rm -f /dev/.rcsysinit
19
20 exit 0
21
22 # vim: set ts=4 :

  ViewVC Help
Powered by ViewVC 1.1.20