Changeset 2462 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/hack-cfg-if-necessary
- Timestamp:
- Oct 20, 2009, 4:07:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/rootfs/sbin/hack-cfg-if-necessary
r1983 r2462 16 16 LogIt "OK, we've found /mnt/cdrom/archives/*; great." 17 17 18 if ! grep "backup-media-type iso" /tmp/mondo-restore.cfg 2 > /dev/null ; then18 if ! grep "backup-media-type iso" $MINDI_CACHE/mondorestore.cfg 2 > /dev/null ; then 19 19 LogIt "Config file is fine, BTW." 20 20 exit 0 21 21 fi 22 22 23 LogIt "Re-jigging mondo -restore.cfg because you backed up to ISOs and then burned them to CDs" 124 sed -i 's/backup-media-type iso/backup-media-type cdr/' /tmp/mondo-restore.cfg23 LogIt "Re-jigging mondorestore.cfg because you backed up to ISOs and then burned them to CDs" 1 24 sed -i 's/backup-media-type iso/backup-media-type cdr/' $MINDI_CACHE/mondorestore.cfg 25 25 LogIt "Done re-jigging. Yay." 26 26 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.