From a689b66023ad7b3da179b02c9e473cbc49f295e6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 5 Mar 2008 12:27:11 +0000 Subject: Add tunable SYSCONFDIR --- init.d/halt.sh.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'init.d/halt.sh.in') diff --git a/init.d/halt.sh.in b/init.d/halt.sh.in index dca6815..bf2ba56 100644 --- a/init.d/halt.sh.in +++ b/init.d/halt.sh.in @@ -2,9 +2,9 @@ # Copyright 2007-2008 Roy Marples # 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 -- cgit v1.2.3