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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2774 Revision 2775
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3 3
4# mount $svcdir as something we can write to if it's not rw 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 5# On vservers, / is always rw at this point, so we need to clean out
6# the old service state data 6# the old service state data
7if touch "${RC_SVCDIR}/.test" 2>/dev/null ; then 7if echo 2>/dev/null >"${RC_SVCDIR}/.test.$$" ; then
8 rm -rf "${RC_SVCDIR}/.test" \ 8 rm -rf "${RC_SVCDIR}/.test.$$" \
9 $(ls -d1 "${RC_SVCDIR:-/lib/rcscripts/init.d}"/* 2>/dev/null | \ 9 $(ls -d1 "${RC_SVCDIR:-/lib/rcscripts/init.d}"/* 2>/dev/null | \
10 grep -Ev "/(deptree|ksoftlevel)$") 10 grep -Ev "/(deptree|ksoftlevel)$")
11else 11else
12 mount_svcdir 12 mount_svcdir
13fi 13fi

Legend:
Removed from v.2774  
changed lines
  Added in v.2775

  ViewVC Help
Powered by ViewVC 1.1.20