#!/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