From 927d3b6f5911a1f439f84c6e6ba7cd2544a6882e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 15:38:22 +0000 Subject: do not reboot/shutdown if /tmp/no-shutdown exists --- rescue/restore-image-lib.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rescue/restore-image-lib.sh') 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 -- cgit v1.2.1