source: lsb-bootscripts/etc/init.d/reboot@ 8476b9e1

7.1
Last change on this file since 8476b9e1 was f3f65e73, checked in by DJ Lucas <dj@…>, 13 years ago

Added stop_on_error parameter to rc.site and cleaned up Begin and End lines.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9552 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 569 bytes
Line 
1#!/bin/sh
2# Begin $RC_BASE/init.d/reboot
3
4### BEGIN INIT INFO
5# Provides: reboot
6# Required-Start:
7# Should-Start:
8# Required-Stop:
9# Should-Stop:
10# Default-Start: 6
11# Default-Stop:
12# Short-Description: Reboots the system.
13# Description: Reboots the System.
14# X-LFS-Provided-By: LFS
15### END INIT INFO
16
17. /lib/lsb/init-functions
18
19case "${1}" in
20 stop)
21 log_success_msg "Restarting system..."
22 reboot -d -f -i
23 ;;
24
25 *)
26 echo "Usage: ${0} {stop}"
27 exit 1
28 ;;
29
30esac
31
32# End $RC_BASE/init.d/reboot
Note: See TracBrowser for help on using the repository browser.