source:
bootscripts/lfs/init.d/reboot@
2539253
Last change on this file since 2539253 was 2539253, checked in by , 2 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[1c48007] | 1 | #!/bin/sh |
2 | ######################################################################## | |
[0cda898] | 3 | # Begin reboot |
[1c48007] | 4 | # |
5 | # Description : Reboot Scripts | |
6 | # | |
7 | # Authors : Gerard Beekmans - gerard@linuxfromscratch.org | |
[f874424] | 8 | # DJ Lucas - dj@linuxfromscratch.org |
[2539253] | 9 | # Updates : Bruce Dubbs - bdubbs@linuxfromscratch.org |
10 | # : Pierre Labastie - pierre@linuxfromscratch.org | |
[1c48007] | 11 | # |
[0cda898] | 12 | # Version : LFS 7.0 |
[1c48007] | 13 | # |
[2539253] | 14 | # Notes : Update March 24th, 2022: change "stop" to "start". |
15 | # Add the $last facility to Required-start | |
16 | # | |
[1c48007] | 17 | ######################################################################## |
18 | ||
[0cda898] | 19 | ### BEGIN INIT INFO |
20 | # Provides: reboot | |
[2539253] | 21 | # Required-Start: $last |
[0cda898] | 22 | # Should-Start: |
23 | # Required-Stop: | |
24 | # Should-Stop: | |
25 | # Default-Start: 6 | |
26 | # Default-Stop: | |
27 | # Short-Description: Reboots the system. | |
28 | # Description: Reboots the System. | |
29 | # X-LFS-Provided-By: LFS | |
30 | ### END INIT INFO | |
31 | ||
[f874424] | 32 | . /lib/lsb/init-functions |
[1c48007] | 33 | |
34 | case "${1}" in | |
[2539253] | 35 | start) |
[f874424] | 36 | log_info_msg "Restarting system..." |
[0cda898] | 37 | reboot -d -f -i |
38 | ;; | |
[1c48007] | 39 | |
[0cda898] | 40 | *) |
[2539253] | 41 | echo "Usage: ${0} {start}" |
[0cda898] | 42 | exit 1 |
43 | ;; | |
[1c48007] | 44 | |
45 | esac | |
46 | ||
[0cda898] | 47 | # End reboot |
Note:
See TracBrowser
for help on using the repository browser.