]> spindle.queued.net Git - xodist/commitdiff
installer: sleep (psuedo-)infinitely rather than exiting if the script fails
authorAndres Salomon <dilinger@collabora.co.uk>
Wed, 3 Jun 2009 00:02:40 +0000 (20:02 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Wed, 3 Jun 2009 00:02:40 +0000 (20:02 -0400)
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
installer

index 59888f712d4d5a416e2ddfd302aafb4c82271731..dbcd0bc387f43a06a1fe8f277129fb2a6ffda1e3 100755 (executable)
--- a/installer
+++ b/installer
@@ -38,7 +38,7 @@ do_install()
        echo "Starting installer!"
        if [ ! -d /root/etc ]; then
                echo "Error: /root doesn't appear to have a valid filesystem mounted!"
-               exit 1
+               sleep 9999999999
        fi
 
        ROOT_SRC=$(grep ' /root ' /proc/mounts | cut -d' ' -f1)
@@ -48,7 +48,7 @@ do_install()
 
        if [ -z "$TARGET" ]; then
                echo "Error: couldn't find drive to install to!"
-               exit 1
+               sleep 9999999999
        fi
 
        # don't keep fs mounted while copying it