* updated libkomparediff2 (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / base / runit / rockify.patch
blob352c0989745cdcbf74f88973e1289717cdecf5a3
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/*/runit/rockify.patch
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
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
15 # version.
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
20 Alejandro
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
24 @@ -1,10 +1,17 @@
25 #!/bin/sh
26 # system one time tasks
28 -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
30 +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
32 -/etc/init.d/rcS
33 -/etc/init.d/rmnologin
34 +for x in /etc/runit/1.d/*; do
35 + [ -x $x ] && $x start
36 +done
38 -touch /etc/runit/stopit
39 -chmod 0 /etc/runit/stopit
40 +# write ET mark for btee
41 +echo -ne '\004'
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
49 @@ -1,14 +1,18 @@
50 #!/bin/sh
51 exec 2>&1
53 -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
55 -LAST=0
56 -test -x /etc/runit/reboot && LAST=6
57 +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
59 +export INIT_DOES_REBOOTHALT=1
60 +export RUNLEVEL=0
61 +test -x /etc/runit/reboot && export RUNLEVEL=6
63 echo 'Waiting for services to stop...'
64 -sv -w196 force-stop /service/*
65 -sv exit /service/*
66 +sv -w196 force-stop /var/service/*
67 +sv exit /var/service/*
69 echo 'Shutdown...'
70 -/etc/init.d/rc $LAST
71 +for x in /etc/runit/3.d/*; do
72 + [ -x $x ] && $x stop
73 +done
74 +true
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
77 @@ -4,6 +4,6 @@
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
85 /bin/sleep 14