1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/runit/rockify.patch
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
16 # --- T2-COPYRIGHT-NOTE-END ---
18 we need to export vars to be read inside init.d/system
19 currently we simulate sysv's stage 2
22 --- ./etc/debian/1.orig 2005-08-24 16:14:38.000000000 -0400
23 +++ ./etc/debian/1 2005-09-24 18:42:18.000000000 -0400
26 # system one time tasks
28 -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
30 +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
33 -/etc/init.d/rmnologin
34 +for x in /etc/runit/1.d/*; do
35 + [ -x $x ] && $x start
38 -touch /etc/runit/stopit
39 -chmod 0 /etc/runit/stopit
40 +# write ET mark for btee
43 +} 2>&1 | /sbin/btee a /var/log/init.msg
45 +touch /etc/runit/{stopit,reboot}
46 +chmod 0 /etc/runit/{stopit,reboot}
47 --- ./etc/debian/3.orig 2006-06-29 07:53:16.000000000 +0000
48 +++ ./etc/debian/3 2006-07-07 13:09:50.000000000 +0000
53 -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
56 -test -x /etc/runit/reboot && LAST=6
57 +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
59 +export INIT_DOES_REBOOTHALT=1
61 +test -x /etc/runit/reboot && export RUNLEVEL=6
63 echo 'Waiting for services to stop...'
64 -sv -w196 force-stop /service/*
66 +sv -w196 force-stop /var/service/*
67 +sv exit /var/service/*
71 +for x in /etc/runit/3.d/*; do
72 + [ -x $x ] && $x stop
75 --- ./etc/debian/ctrlaltdel.orig 2005-08-24 16:14:38.000000000 -0400
76 +++ ./etc/debian/ctrlaltdel 2005-09-14 05:05:04.000000000 -0400
78 MSG="System is going down in 14 seconds..."
80 # echo 'disabled.' ; exit
81 -touch /etc/runit/stopit
82 -chmod 100 /etc/runit/stopit && echo "$MSG" | wall
83 +touch /etc/runit/{stopit,reboot}
84 +chmod 100 /etc/runit/{stopit,reboot} && echo "$MSG" | wall