From: Michael Prokop Date: Sun, 22 Apr 2007 21:06:02 +0000 (+0200) Subject: Update /linuxrc: the rescan feature (via grmlmount) works now X-Git-Tag: 0.0.1~77 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=c97f4a2f98bf10e001f78180c8af0c506601520c Update /linuxrc: the rescan feature (via grmlmount) works now --- diff --git a/rewrite/linuxrc b/rewrite/linuxrc index bede0d8..5f4a09c 100644 --- a/rewrite/linuxrc +++ b/rewrite/linuxrc @@ -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