diff options
author | Roy Marples <roy@marples.name> | 2008-06-21 15:31:04 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-06-21 15:31:04 +0000 |
commit | 11e4059b055c56fac0305bddd1f34476b832c832 (patch) | |
tree | 25a02bdc36bec1ea7bbbdf5b02c82cfeffb3cb43 | |
parent | 5510451bac77cbd490599e506619aa09d9b2607b (diff) |
Set the default RC_SVCDIR higher up.
-rw-r--r-- | sh/init-common-post.sh.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/init-common-post.sh.in b/sh/init-common-post.sh.in index 61f38631..93acb299 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);; |