Changeset 2603 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/hack-cfg-if-necessary
- Timestamp:
- Mar 22, 2010, 1:56:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/rootfs/sbin/hack-cfg-if-necessary
r2591 r2603 17 17 18 18 if [ -f $MINDI_CACHE/mondorestore.cfg ]; then 19 if [ ! grep "backup-media-type iso" $MINDI_CACHE/mondorestore.cfg 2 > /dev/null] ; then 19 grep -q "backup-media-type iso" $MINDI_CACHE/mondorestore.cfg 2> /dev/null 20 if [ $? -ne 0 ] ; then 20 21 LogIt "Config file is fine, BTW." 21 22 exit 0 22 23 fi 23 fi24 25 if [ -f $MINDI_CACHE/mondorestore.cfg ]; then26 24 LogIt "Re-jigging mondorestore.cfg because you backed up to ISOs and then burned them to CDs" 1 27 25 sed -i 's/backup-media-type iso/backup-media-type cdr/' $MINDI_CACHE/mondorestore.cfg
Note:
See TracChangeset
for help on using the changeset viewer.