diff options
author | Roy Marples <roy@marples.name> | 2008-03-05 12:27:11 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-05 12:27:11 +0000 |
commit | a689b66023ad7b3da179b02c9e473cbc49f295e6 (patch) | |
tree | c1e6baad98bdfde3c36f1105b8fe6f15534b30c4 /init.d/halt.sh.in | |
parent | 7aa231de2e784b00267cb618b728cf0f754c9573 (diff) |
Add tunable SYSCONFDIR
Diffstat (limited to 'init.d/halt.sh.in')
-rw-r--r-- | init.d/halt.sh.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/init.d/halt.sh.in b/init.d/halt.sh.in index dca6815c..bf2ba564 100644 --- a/init.d/halt.sh.in +++ b/init.d/halt.sh.in @@ -2,9 +2,9 @@ # Copyright 2007-2008 Roy Marples <roy@marples.name> # All rights reserved. Released under the 2-clause BSD license. -. /etc/init.d/functions.sh +. /@SYSCONFDIR@/init.d/functions.sh . "${RC_LIBDIR}"/sh/rc-functions.sh -[ -r /etc/rc.conf ] && . /etc/rc.conf +[ -r @SYSCONFDIR@/rc.conf ] && . @SYSCONFDIR@/rc.conf # Support LiveCD foo if [ -r /sbin/livecd-functions.sh ]; then @@ -28,8 +28,8 @@ sync; sync # 1) we don't need (and by default can't) umount anything (VServer) or # 2) the host utils take care of all umounting stuff (OpenVZ) if [ "${RC_SYS}" = "VSERVER" -o "${RC_SYS}" = "OPENVZ" ]; then - if [ -e /etc/init.d/"$1".sh ]; then - . /etc/init.d/"$1".sh + if [ -e @SYSCONFDIR@/init.d/"$1".sh ]; then + . @SYSCONFDIR@/init.d/"$1".sh else exit 0 fi @@ -93,7 +93,7 @@ if [ ${unmounted} -ne 0 ]; then fi # Load the final script - not needed on BSD so they should not exist -[ -e /etc/init.d/"$1".sh ] && . /etc/init.d/"$1".sh +[ -e @SYSCONFDIR@/init.d/"$1".sh ] && . @SYSCONFDIR@/init.d/"$1".sh # Always exit 0 here exit 0 |