summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv/runitscripts/ctrlaltdel
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/ctrlaltdel')
-rwxr-xr-xabs/mv-core/runit-scripts-mv/runitscripts/ctrlaltdel9
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/ctrlaltdel b/abs/mv-core/runit-scripts-mv/runitscripts/ctrlaltdel
new file mode 100755
index 0000000..2550d3c
--- /dev/null
+++ b/abs/mv-core/runit-scripts-mv/runitscripts/ctrlaltdel
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+PATH=/bin:/usr/bin
+MSG="System is going down in 10 seconds..."
+
+# echo 'disabled.' ; exit
+touch /etc/runit/stopit
+chmod 100 /etc/runit/stopit && echo "$MSG" | wall
+/bin/sleep 10