summaryrefslogtreecommitdiff
blob: b54828c180ce3bb896afbc878efab179d045e5d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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

# Load the final script depending on how we are called
[[ -e /etc/init.d/"$1".sh ]] && source /etc/init.d/"$1".sh

# vim:ts=4