summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/halt.sh')
-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