Last change
on this file since 3864 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
691 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # $Id: hack-cfg-if-necessary 2734 2011-02-26 19:55:00Z bruno $
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | if ! mount | grep cdrom ; then
|
---|
| 7 | LogIt "CD-ROM is not mounted. Darn."
|
---|
| 8 | exit 0
|
---|
| 9 | fi
|
---|
| 10 |
|
---|
| 11 | if ! ls /mnt/cdrom/archives/* > /dev/null 2> /dev/null ; then
|
---|
| 12 | LogIt "Can't find /mnt/cdrom/archives; darn."
|
---|
| 13 | exit 0
|
---|
| 14 | fi
|
---|
| 15 |
|
---|
| 16 | LogIt "OK, we've found /mnt/cdrom/archives/*; great."
|
---|
| 17 |
|
---|
| 18 | if ! grep "backup-media-type iso" /tmp/mondo-restore.cfg 2> /dev/null ; then
|
---|
| 19 | LogIt "Config file is fine, BTW."
|
---|
| 20 | exit 0
|
---|
| 21 | fi
|
---|
| 22 |
|
---|
| 23 | LogIt "Re-jigging mondo-restore.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/mondo-restore.cfg
|
---|
| 25 | LogIt "Done re-jigging. Yay."
|
---|
| 26 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.