X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=rewrite%2Flinuxrc;h=5f4a09ce9ef82cd13490014f11779a350ff6216d;hb=ec8b1031df42f0854327649a0d7761228d3acd40;hp=bede0d8303374f9a0f492b3181e5e65180c0052e;hpb=1e2930a72c63971891aa198a67d63df51af062c0;p=grml-live.git 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