Changeset 3271 in MondoRescue for branches/3.2/mindi/rootfs/usr/sbin/hack-cfg-if-necessary
- Timestamp:
- Apr 29, 2014, 9:23:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/rootfs/usr/sbin/hack-cfg-if-necessary
r3216 r3271 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" /tmp/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/' /tmp/mondorestore.cfg 25 25 LogIt "Done re-jigging. Yay." 26 26 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.