Ignore:
Timestamp:
03/25/2022 09:52:17 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-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/mips64el, 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)
Message:

New semantics for S/K files in boot scripts

Now start and reboot should be called as "script start", and they
should be the last in their runlevel. Note that install_initd
needs to be patched for this to work; see
https://github.com/lfs-book/LSB-Tools/pull/12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/reboot

    r3b20f59 r2539253  
    77# Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
    88#               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
    1011#
    1112# Version     : LFS 7.0
     13#
     14# Notes       : Update March 24th, 2022: change "stop" to "start".
     15#               Add the $last facility to Required-start
    1216#
    1317########################################################################
     
    1519### BEGIN INIT INFO
    1620# Provides:            reboot
    17 # Required-Start:
     21# Required-Start:      $last
    1822# Should-Start:
    1923# Required-Stop:
     
    2933
    3034case "${1}" in
    31    stop)
     35   start)
    3236      log_info_msg "Restarting system..."
    3337      reboot -d -f -i
     
    3539
    3640   *)
    37       echo "Usage: ${0} {stop}"
     41      echo "Usage: ${0} {start}"
    3842      exit 1
    3943      ;;
Note: See TracChangeset for help on using the changeset viewer.