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/halt

    r3b20f59 r2539253  
    88#               DJ Lucas - dj@linuxfromscratch.org
    99# Update      : 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:            halt
    17 # Required-Start:
     21# Required-Start:      $last
    1822# Should-Start:
    1923# Required-Stop:
     
    2731
    2832case "${1}" in
    29    stop)
     33   start)
    3034      halt -d -f -i -p
    3135      ;;
    3236
    3337   *)
    34       echo "Usage: {stop}"
     38      echo "Usage: {start}"
    3539      exit 1
    3640      ;;
Note: See TracChangeset for help on using the changeset viewer.