summary refs log tree commit diff
path: root/etc/debian
diff options
context:
space:
mode:
Diffstat (limited to 'etc/debian')
-rwxr-xr-xetc/debian/17
-rwxr-xr-xetc/debian/32
-rwxr-xr-xetc/debian/ctrlaltdel8
3 files changed, 11 insertions, 6 deletions
diff --git a/etc/debian/1 b/etc/debian/1
index 717289d..4cd10cb 100755
--- a/etc/debian/1
+++ b/etc/debian/1
@@ -1,7 +1,10 @@
 #!/bin/sh
 # system one time tasks
 
-/etc/init.d/rcS
+PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
 
-rm -f /etc/runit/stopit
+/etc/init.d/rcS
 /etc/init.d/rmnologin
+
+touch /etc/runit/stopit
+chmod 0 /etc/runit/stopit
diff --git a/etc/debian/3 b/etc/debian/3
index cf35a13..ee39593 100755
--- a/etc/debian/3
+++ b/etc/debian/3
@@ -1,7 +1,7 @@
 #!/bin/sh
 exec 2>&1
 
-PATH=/sbin:/bin:/command
+PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
 
 LAST=0
 test -r /etc/runit/reboot && LAST=6
diff --git a/etc/debian/ctrlaltdel b/etc/debian/ctrlaltdel
index 2bfe4e0..6684457 100755
--- a/etc/debian/ctrlaltdel
+++ b/etc/debian/ctrlaltdel
@@ -1,7 +1,9 @@
 #!/bin/sh
+
+PATH=/bin:/usr/bin
 MSG="System is going down in 14 seconds..."
 
-#echo 'disabled.' ; exit
-/bin/touch /etc/runit/stopit && \
-  /bin/echo "$MSG" | /usr/bin/wall
+# echo 'disabled.' ; exit
+touch /etc/runit/stopit
+chmod 100 /etc/runit/stopit && echo "$MSG" | wall
 /bin/sleep 14