From 7fbe2eccb1d7ff24f443fc42d90594014d8449be Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 17 Jan 2009 18:36:36 -0600 Subject: switch ctr+alt+delete to reboot instead of poweroff. closes FS#98 --- abs/core-testing/runit-scripts/PKGBUILD | 2 +- abs/core-testing/runit-scripts/runitscripts/ctrlaltdel | 7 +------ abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off | 9 +++++++++ 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100755 abs/core-testing/runit-scripts/runitscripts/ctrlaltdel.off diff --git a/abs/core-testing/runit-scripts/PKGBUILD b/abs/core-testing/runit-scripts/PKGBUILD index d74ab16..ccd0d1f 100755 --- a/abs/core-testing/runit-scripts/PKGBUILD +++ b/abs/core-testing/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=1.8.0 -pkgrel=23 +pkgrel=26 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel b/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel index 2550d3c..30c317b 100755 --- a/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel +++ b/abs/core-testing/runit-scripts/runitscripts/ctrlaltdel @@ -1,9 +1,4 @@ #!/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 +/sbin/reboot 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 -- cgit v0.12