summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-05-25 10:09:00 +0000
committerChristian Heim <phreak@gentoo.org>2006-05-25 10:09:00 +0000
commit641e205510a26ca3ae4ed9d3f7e27221e2656bb7 (patch)
tree86e317c5d043dfbde91cb981229623ca4a189c52 /init.d
parentMerging baselayout r2022 for branches/rc-scripts_1_6, branches/baselayout-1_1... (diff)
downloadbaselayout-vserver-641e205510a26ca3ae4ed9d3f7e27221e2656bb7.tar.gz
baselayout-vserver-641e205510a26ca3ae4ed9d3f7e27221e2656bb7.tar.bz2
baselayout-vserver-641e205510a26ca3ae4ed9d3f7e27221e2656bb7.zip
Merging r2046
svn path=/baselayout-vserver/trunk/; revision=365
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/halt.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh
index 117fc6f..9e23ab0 100755
--- a/init.d/halt.sh
+++ b/init.d/halt.sh
@@ -1,6 +1,9 @@
+#!/bin/bash
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh
+
# Write a reboot record to /var/log/wtmp before unmounting
halt -w &>/dev/null