diff options
author | Roy Marples <roy@marples.name> | 2007-12-14 12:17:57 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-14 12:17:57 +0000 |
commit | f8db842dd2e93c37a5287beefeb425ae98dcdb4a (patch) | |
tree | 6cf94c9f909cb0a684a16f60482daad77d58cd24 /sh | |
parent | 5541d3e3856ba2ef7071a480b49dbef3321c64a5 (diff) |
Default to correct init dir and preserve depconfig
Diffstat (limited to 'sh')
-rw-r--r-- | sh/init-common-post.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/init-common-post.sh b/sh/init-common-post.sh index ce9647dd..8e3e4b54 100644 --- a/sh/init-common-post.sh +++ b/sh/init-common-post.sh @@ -28,10 +28,10 @@ # the old service state data if [ "${RC_SVCDIR}" != "/" ] && mkdir "${RC_SVCDIR}/.test.$$" 2>/dev/null; then rmdir "${RC_SVCDIR}/.test.$$" - for x in ${RC_SVCDIR:-/lib/rcscripts/init.d}/*; do + for x in ${RC_SVCDIR:-/lib/rc/init.d}/*; do [ -e "${x}" ] || continue case ${x##*/} in - deptree|ksoftlevel|rc.log);; + depconfig|deptree|ksoftlevel|rc.log);; *) rm -rf "${x}";; esac done |