mirror of
https://github.com/Poltern/lfs-ru.git
synced 2024-10-19 20:20:33 +03:00
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin reboot
|
|
#
|
|
# Description : Reboot Scripts
|
|
#
|
|
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
|
|
# DJ Lucas - dj@linuxfromscratch.org
|
|
# Updates : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
|
# : Pierre Labastie - pierre@linuxfromscratch.org
|
|
#
|
|
# Version : LFS 7.0
|
|
#
|
|
# Notes : Update March 24th, 2022: change "stop" to "start".
|
|
# Add the $last facility to Required-start
|
|
#
|
|
########################################################################
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: reboot
|
|
# Required-Start: $last
|
|
# 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
|
|
start)
|
|
log_info_msg "Restarting system..."
|
|
reboot -d -f -i
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start}"
|
|
exit 1
|
|
;;
|
|
|
|
esac
|
|
|
|
# End reboot
|