diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-18 00:36:36 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-18 00:36:36 (GMT) |
commit | 7fbe2eccb1d7ff24f443fc42d90594014d8449be (patch) | |
tree | 267060fdb1f891d5f5fe1189ad6ec783b75155a1 /abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off | |
parent | 1ed68530466f71d4077f50597c73103f3e5d4d9b (diff) | |
download | linhes_pkgbuild-7fbe2eccb1d7ff24f443fc42d90594014d8449be.zip linhes_pkgbuild-7fbe2eccb1d7ff24f443fc42d90594014d8449be.tar.gz linhes_pkgbuild-7fbe2eccb1d7ff24f443fc42d90594014d8449be.tar.bz2 |
switch ctr+alt+delete to reboot instead of poweroff.
closes FS#98
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off b/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off new file mode 100755 index 0000000..2550d3c --- /dev/null +++ b/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off @@ -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 |