summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-11 15:38:22 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-11 15:38:22 +0000
commit927d3b6f5911a1f439f84c6e6ba7cd2544a6882e (patch)
tree4644dd16b7479f011df9e98e38674b106aba2193 /rescue
parentfdb11d4baf9ae3bdf1649064c91e80a4d541f9b9 (diff)
downloaddrakx-927d3b6f5911a1f439f84c6e6ba7cd2544a6882e.tar
drakx-927d3b6f5911a1f439f84c6e6ba7cd2544a6882e.tar.gz
drakx-927d3b6f5911a1f439f84c6e6ba7cd2544a6882e.tar.bz2
drakx-927d3b6f5911a1f439f84c6e6ba7cd2544a6882e.tar.xz
drakx-927d3b6f5911a1f439f84c6e6ba7cd2544a6882e.zip
do not reboot/shutdown if /tmp/no-shutdown exists
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/restore-image-lib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/rescue/restore-image-lib.sh b/rescue/restore-image-lib.sh
index 5cffbdb6f..ea610ab21 100755
--- a/rescue/restore-image-lib.sh
+++ b/rescue/restore-image-lib.sh
@@ -60,6 +60,7 @@ function _eject()
function _shutdown()
{
+ [ -e /tmp/no-shutdown ] && exit
clear
sync
echo s > /proc/sysrq-trigger
@@ -69,6 +70,7 @@ function _shutdown()
function _reboot()
{
+ [ -e /tmp/no-shutdown ] && exit
clear
sync
echo s > /proc/sysrq-trigger