diff options
Diffstat (limited to 'etc/rc.d/init.d/halt')
-rwxr-xr-x | etc/rc.d/init.d/halt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/etc/rc.d/init.d/halt b/etc/rc.d/init.d/halt new file mode 100755 index 00000000..46ccecf4 --- /dev/null +++ b/etc/rc.d/init.d/halt @@ -0,0 +1,43 @@ +#!/bin/sh +######################################################################## +# Begin halt +# +# Description : Halt Script +# +# Authors : Gerard Beekmans - [email protected] +# DJ Lucas - [email protected] +# Update : Bruce Dubbs - [email protected] +# : Pierre Labastie - [email protected] +# +# Version : LFS 7.0 +# +# Notes : Update March 24th, 2022: change "stop" to "start". +# Add the $last facility to Required-start +# +######################################################################## + +### BEGIN INIT INFO +# Provides: halt +# Required-Start: $last +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: 0 +# Default-Stop: +# Short-Description: Halts the system. +# Description: Halts the System. +# X-LFS-Provided-By: LFS +### END INIT INFO + +case "${1}" in + start) + halt -d -f -i -p + ;; + + *) + echo "Usage: {start}" + exit 1 + ;; +esac + +# End halt |