Changeset 2832


Ignore:
Timestamp:
Jun 16, 2011, 9:27:38 PM (8 years ago)
Author:
bruno
Message:

r4154@vgiles: bruno | 2011-06-11 22:02:34 +0200

  • Avoids error msgs if no mondo-restore.cfg file exists (when mindi used stdalone)
Location:
branches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/rootfs/sbin/init

    r2816 r2832  
    888888fdisk -l  >> $LOGFILE
    889889LogIt "-------------"
    890 LogIt "/tmp/mondo-restore.cfg result:" >> $LOGFILE
    891 LogIt "-------------"
    892 cat /tmp/mondo-restore.cfg  >> $LOGFILE
     890if [ -f /tmp/mondo-restore.cfg ]; then
     891    LogIt "/tmp/mondo-restore.cfg result:" >> $LOGFILE
     892    LogIt "-------------"
     893    cat /tmp/mondo-restore.cfg  >> $LOGFILE
     894fi
    893895
    894896ide-opt
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2768 r2832  
    900900fdisk -l  >> $LOGFILE
    901901LogIt "-------------"
    902 LogIt "/tmp/mondo-restore.cfg result:" >> $LOGFILE
    903 LogIt "-------------"
    904 cat /tmp/mondo-restore.cfg  >> $LOGFILE
     902if [ -f /tmp/mondo-restore.cfg ]; then
     903    LogIt "/tmp/mondo-restore.cfg result:" >> $LOGFILE
     904    LogIt "-------------"
     905    cat /tmp/mondo-restore.cfg  >> $LOGFILE
     906fi
    905907
    906908ide-opt
Note: See TracChangeset for help on using the changeset viewer.