Check for /var/run/fai/FAI_INSTALLATION_IN_PROGRESS and exit then
authorMichael Prokop <devnull@localhost>
Thu, 4 Oct 2007 20:16:56 +0000 (22:16 +0200)
committerMichael Prokop <devnull@localhost>
Thu, 4 Oct 2007 20:16:56 +0000 (22:16 +0200)
debian/changelog
grml-live

index b396b1a..325ac40 100644 (file)
@@ -1,3 +1,9 @@
+grml-live (0.0.4) unstable; urgency=low
+
+  * Check for /var/run/fai/FAI_INSTALLATION_IN_PROGRESS and exit then.
+
+ -- Michael Prokop <mika@grml.org>  Thu, 04 Oct 2007 22:16:34 +0200
+
 grml-live (0.0.3) unstable; urgency=low
 
   * Support for setting GRML_NAME (like grml vs. grml-small
index 9347873..2c7abcf 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sat Sep 29 10:44:26 CEST 2007 [mika]
+# Latest change: Thu Oct 04 22:16:28 CEST 2007 [mika]
 ################################################################################
 
 # read configuration files, set some misc variables {{{
@@ -21,6 +21,12 @@ if [ "$(id -u 2>/dev/null)" != 0 ] ; then
    exit 1
 fi
 
+if [ -r /var/run/fai/FAI_INSTALLATION_IN_PROGRESS ] ; then
+   echo "/usr/sbin/fai already running or was aborted before."&>2
+   echo "You may remove /var/run/fai/FAI_INSTALLATION_IN_PROGRESS and try again.">&2
+   exit 1
+fi
+
 # make sure they are not set by default
 VERBOSE=''
 FORCE=''