From c97f4a2f98bf10e001f78180c8af0c506601520c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 22 Apr 2007 23:06:02 +0200 Subject: [PATCH] Update /linuxrc: the rescan feature (via grmlmount) works now --- rewrite/linuxrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 -- 2.1.4