about summary refs log tree commit diff
path: root/ctrlaltdel
diff options
context:
space:
mode:
Diffstat (limited to 'ctrlaltdel')
-rwxr-xr-xctrlaltdel5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctrlaltdel b/ctrlaltdel
index 7738067..866dcc8 100755
--- a/ctrlaltdel
+++ b/ctrlaltdel
@@ -3,8 +3,11 @@
 PATH=/usr/bin:/usr/sbin
 MSG="System is going down..."
 
+# We check for this file after receiving a SIGCONT to move to stage3
+chmod 100 /run/runit/stopit
+
 # We check for this file in stage3 to halt or reboot
-touch /run/runit/reboot
+chmod 100 /run/runit/reboot
 
 # Proceed with shutdown process
 echo "$MSG" | wall