aboutsummaryrefslogtreecommitdiff
path: root/init.d/halt.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
committerRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
commitd81def80b00a3dbcb4f8980f4503c4d659b48a2a (patch)
tree64a5df4281620cacbc1f03838d42e88167886fc9 /init.d/halt.sh
parentf077f179edaeb746b267421baa29ec751c38b713 (diff)
Move /etc/conf.d/rc to /etc/rc.conf.
Lowercase all configurable variables, non configurations remain uppercase. Replace rc_env_bool with rc_yesno. Split localmount info procfs (Linux) and dumpon, savecore (BSD)
Diffstat (limited to 'init.d/halt.sh')
-rwxr-xr-xinit.d/halt.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh
index 34e81fdb..fb82db1c 100755
--- a/init.d/halt.sh
+++ b/init.d/halt.sh
@@ -26,6 +26,7 @@
. /etc/init.d/functions.sh
. "${RC_LIBDIR}"/sh/rc-functions.sh
+[ -r /etc/rc.conf ] && . /etc/rc.conf
# Support LiveCD foo
if [ -r /sbin/livecd-functions.sh ] ; then
@@ -43,12 +44,12 @@ if [ -x /sbin/killall5 ] ; then
fi
# Flush all pending disk writes now
-sync ; sync
+sync; sync
# If we are in a VPS, we don't need anything below here, because
# 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}" = "VPS" ] ; then
+if [ "${RC_SYS}" = "VPS" ]; then
if [ -e /etc/init.d/"$1".sh ] ; then
. /etc/init.d/"$1".sh
else
@@ -93,7 +94,7 @@ if [ "${RC_UNAME}" = "Linux" ] ; then
. "${RC_LIBDIR}"/sh/rc-mount.sh
eindent
fs=
- for x in ${RC_NET_FS_LIST} ; do
+ for x in ${net_fs_list} ; do
fs="${fs}${fs:+|}${x}"
done
[ -n "${fs}" ] && fs="^(${fs})$"