diff options
Diffstat (limited to 'ctrlaltdel')
-rwxr-xr-x | ctrlaltdel | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ctrlaltdel b/ctrlaltdel new file mode 100755 index 0000000..af70ed6 --- /dev/null +++ b/ctrlaltdel @@ -0,0 +1,11 @@ +#!/bin/sh + +PATH=/usr/bin:/usr/sbin +MSG="System is going down..." + +# We check for this file in stage3 to halt or reboot +touch /run/runit/reboot + +# Proceed with shutdown process +touch /etc/runit/stopit +chmod 100 /etc/runit/stopit && echo "$MSG" | wall |