Changeset 1983 in MondoRescue for branches/2.2.7/mindi/rootfs/sbin/hack-cfg-if-necessary
- Timestamp:
- Jun 16, 2008, 9:40:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mindi/rootfs/sbin/hack-cfg-if-necessary
r275 r1983 16 16 LogIt "OK, we've found /mnt/cdrom/archives/*; great." 17 17 18 if ! grep "backup-media-type iso" /tmp/mondo-restore.cfg ; then18 if ! grep "backup-media-type iso" /tmp/mondo-restore.cfg 2 > /dev/null ; then 19 19 LogIt "Config file is fine, BTW." 20 20 exit 0 … … 22 22 23 23 LogIt "Re-jigging mondo-restore.cfg because you backed up to ISOs and then burned them to CDs" 1 24 mv -f /tmp/mondo-restore.cfg /tmp/mrco 25 sed 's/backup-media-type iso/backup-media-type cdr/' /tmp/mrco > /tmp/mondo-restore.cfg 24 sed -i 's/backup-media-type iso/backup-media-type cdr/' /tmp/mondo-restore.cfg 26 25 LogIt "Done re-jigging. Yay." 27 26 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.