From 11e4059b055c56fac0305bddd1f34476b832c832 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 21 Jun 2008 15:31:04 +0000 Subject: Set the default RC_SVCDIR higher up. --- sh/init-common-post.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sh/init-common-post.sh.in') diff --git a/sh/init-common-post.sh.in b/sh/init-common-post.sh.in index 61f3863..93acb29 100644 --- a/sh/init-common-post.sh.in +++ b/sh/init-common-post.sh.in @@ -6,9 +6,10 @@ retval=0 # 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 +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:-/@LIB@/rc/init.d}/*; do + for x in ${RC_SVCDIR}/*; do [ -e "${x}" ] || continue case ${x##*/} in depconfig|deptree|ksoftlevel|rc.log);; -- cgit v1.2.3