Update /linuxrc: the rescan feature (via grmlmount) works now
authorMichael Prokop <mika@grml.org>
Sun, 22 Apr 2007 21:06:02 +0000 (23:06 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 22 Apr 2007 21:06:02 +0000 (23:06 +0200)
rewrite/linuxrc

index bede0d8..5f4a09c 100644 (file)
@@ -613,12 +613,16 @@ grmlmount()
 }
 
 # Rerun the grml-CDROM part 3 times at total
-if ! grmlmount ; then
-   log_warning_msg "grml CD-ROM not yet found, sleeping for 5 seconds and trying again then."
-   sleep 5
-   if ! grmlmount ; then
-      log_warning_msg "grml CD-ROM still not yet found, sleeping for 5 more seconds and trying once more again."
-      sleep 5
+grmlmount
+if [ -z "$FOUND_GRML" ] ; then
+   echo
+   log_warn_msg "grml CD-ROM not yet found, sleeping for 5 seconds and trying again then."
+   sleep 5 && echo " $SUCCESS"
+   grmlmount
+   if [ -z "$FOUND_GRML" ] ; then
+      echo
+      log_warn_msg "grml CD-ROM still not yet found, sleeping for 5 more seconds and trying once more again."
+      sleep 5 && echo " $SUCCESS"
    fi
 fi