Uncommented the ifup/ifdown commands in /etc/init.d/network
This commit is contained in:
43
SRC/initscripts-0.2/etc/init.d/reboot
Normal file
43
SRC/initscripts-0.2/etc/init.d/reboot
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin reboot
|
||||
#
|
||||
# Description : Reboot Scripts
|
||||
#
|
||||
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
|
||||
# DJ Lucas - dj@linuxfromscratch.org
|
||||
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
||||
#
|
||||
# Version : LFS 7.0
|
||||
#
|
||||
########################################################################
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: reboot
|
||||
# Required-Start:
|
||||
# Should-Start:
|
||||
# Required-Stop:
|
||||
# Should-Stop:
|
||||
# Default-Start: 6
|
||||
# Default-Stop:
|
||||
# Short-Description: Reboots the system.
|
||||
# Description: Reboots the System.
|
||||
# X-LFS-Provided-By: LFS
|
||||
### END INIT INFO
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
case "${1}" in
|
||||
stop)
|
||||
log_info_msg "Restarting system..."
|
||||
reboot -d -f -i
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} {stop}"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# End reboot
|
||||
Reference in New Issue
Block a user