Changeset 2539253 for bootscripts/lfs/init.d
- Timestamp:
- 03/25/2022 09:52:17 AM (3 years ago)
- Branches:
- 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- ed6ffcb
- Parents:
- 3b20f59
- git-author:
- Pierre Labastie <pierre.labastie@…> (03/22/2022 01:29:15 PM)
- git-committer:
- Pierre Labastie <pierre.labastie@…> (03/25/2022 09:52:17 AM)
- Location:
- bootscripts/lfs/init.d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/halt
r3b20f59 r2539253 8 8 # DJ Lucas - dj@linuxfromscratch.org 9 9 # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org 10 # : Pierre Labastie - pierre@linuxfromscratch.org 10 11 # 11 12 # Version : LFS 7.0 13 # 14 # Notes : Update March 24th, 2022: change "stop" to "start". 15 # Add the $last facility to Required-start 12 16 # 13 17 ######################################################################## … … 15 19 ### BEGIN INIT INFO 16 20 # Provides: halt 17 # Required-Start: 21 # Required-Start: $last 18 22 # Should-Start: 19 23 # Required-Stop: … … 27 31 28 32 case "${1}" in 29 st op)33 start) 30 34 halt -d -f -i -p 31 35 ;; 32 36 33 37 *) 34 echo "Usage: {st op}"38 echo "Usage: {start}" 35 39 exit 1 36 40 ;; -
bootscripts/lfs/init.d/reboot
r3b20f59 r2539253 7 7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org 8 8 # DJ Lucas - dj@linuxfromscratch.org 9 # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org 9 # Updates : Bruce Dubbs - bdubbs@linuxfromscratch.org 10 # : Pierre Labastie - pierre@linuxfromscratch.org 10 11 # 11 12 # Version : LFS 7.0 13 # 14 # Notes : Update March 24th, 2022: change "stop" to "start". 15 # Add the $last facility to Required-start 12 16 # 13 17 ######################################################################## … … 15 19 ### BEGIN INIT INFO 16 20 # Provides: reboot 17 # Required-Start: 21 # Required-Start: $last 18 22 # Should-Start: 19 23 # Required-Stop: … … 29 33 30 34 case "${1}" in 31 st op)35 start) 32 36 log_info_msg "Restarting system..." 33 37 reboot -d -f -i … … 35 39 36 40 *) 37 echo "Usage: ${0} {st op}"41 echo "Usage: ${0} {start}" 38 42 exit 1 39 43 ;;
Note:
See TracChangeset
for help on using the changeset viewer.