summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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