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
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
Last change
on this file since 16cd0963 was 2539253, checked in by Pierre Labastie <pierre.labastie@…>, 2 years ago |
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
|
-
Property mode
set to
100644
|
File size:
1014 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | ########################################################################
|
---|
3 | # Begin halt
|
---|
4 | #
|
---|
5 | # Description : Halt Script
|
---|
6 | #
|
---|
7 | # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
8 | # DJ Lucas - dj@linuxfromscratch.org
|
---|
9 | # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
---|
10 | # : Pierre Labastie - pierre@linuxfromscratch.org
|
---|
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
|
---|
16 | #
|
---|
17 | ########################################################################
|
---|
18 |
|
---|
19 | ### BEGIN INIT INFO
|
---|
20 | # Provides: halt
|
---|
21 | # Required-Start: $last
|
---|
22 | # Should-Start:
|
---|
23 | # Required-Stop:
|
---|
24 | # Should-Stop:
|
---|
25 | # Default-Start: 0
|
---|
26 | # Default-Stop:
|
---|
27 | # Short-Description: Halts the system.
|
---|
28 | # Description: Halts the System.
|
---|
29 | # X-LFS-Provided-By: LFS
|
---|
30 | ### END INIT INFO
|
---|
31 |
|
---|
32 | case "${1}" in
|
---|
33 | start)
|
---|
34 | halt -d -f -i -p
|
---|
35 | ;;
|
---|
36 |
|
---|
37 | *)
|
---|
38 | echo "Usage: {start}"
|
---|
39 | exit 1
|
---|
40 | ;;
|
---|
41 | esac
|
---|
42 |
|
---|
43 | # End halt
|
---|
Note:
See
TracBrowser
for help on using the repository browser.