mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
37 lines
658 B
Bash
37 lines
658 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/reboot
|
|
#
|
|
# Description : Reboot Scripts
|
|
#
|
|
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
|
|
#
|
|
# Version : 00.00
|
|
#
|
|
# Notes :
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
case "${1}" in
|
|
stop)
|
|
sync && sync
|
|
boot_mesg "Remount root readonly..."
|
|
mount -f -o remount,ro / > /dev/null 2>&1
|
|
evaluate_retval
|
|
boot_mesg "Prepare for reboot..."
|
|
sleep 2
|
|
reboot -d -f -i
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {stop}"
|
|
exit 1
|
|
;;
|
|
|
|
esac
|
|
|
|
# End $rc_base/init.d/reboot
|