summaryrefslogtreecommitdiff
path: root/init.d/halt.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/halt.in')
-rw-r--r--init.d/halt.in25
1 files changed, 0 insertions, 25 deletions
diff --git a/init.d/halt.in b/init.d/halt.in
deleted file mode 100644
index d92ce5f..0000000
--- a/init.d/halt.in
+++ /dev/null
@@ -1,25 +0,0 @@
-#!@PREFIX@/sbin/runscript
-# Copyright 2007-2008 Roy Marples <roy@marples.name>
-# All rights reserved. Released under the 2-clause BSD license.
-
-# This script really belongs with the Linux sysvinit package
-description="Halt or reboot the host depending on sysvinit runlevel."
-
-depend()
-{
- after *
- use mount-ro
- keyword noprefix
-}
-
-start()
-{
- case "${RUNLEVEL}" in
- 0) runlevel=shutdown;;
- 6) runlevel=reboot;;
- *) eerror "Unknown runlevel ${RUNLEVEL}"; return 1
- esac
-
- . /etc/init.d/"${runlevel}".sh
- return 0
-}