7.1
Rev | Line | |
---|
[1c48007] | 1 | #!/bin/sh
|
---|
[f3f65e73] | 2 | # Begin $RC_BASE/init.d/reboot
|
---|
[1c48007] | 3 |
|
---|
| 4 | ### BEGIN INIT INFO
|
---|
| 5 | # Provides: reboot
|
---|
| 6 | # Required-Start:
|
---|
| 7 | # Should-Start:
|
---|
[614a14e] | 8 | # Required-Stop:
|
---|
[1c48007] | 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 |
|
---|
| 19 | case "${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 |
|
---|
| 30 | esac
|
---|
| 31 |
|
---|
[f3f65e73] | 32 | # End $RC_BASE/init.d/reboot
|
---|
Note:
See
TracBrowser
for help on using the repository browser.