Last change
on this file since 181 was 30, checked in by bcornec, 20 years ago |
Id property added on files to allow for better conf. management
|
-
Property svn:keywords
set to
Id
|
File size:
665 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | if ! mount | grep cdrom ; then
|
---|
4 | LogIt "CD-ROM is not mounted. Darn."
|
---|
5 | exit 0
|
---|
6 | fi
|
---|
7 |
|
---|
8 | if ! ls /mnt/cdrom/archives/* > /dev/null 2> /dev/null ; then
|
---|
9 | LogIt "Can't find /mnt/cdrom/archives; darn."
|
---|
10 | exit 0
|
---|
11 | fi
|
---|
12 |
|
---|
13 | LogIt "OK, we've found /mnt/cdrom/archives/*; great."
|
---|
14 |
|
---|
15 | if ! grep "backup-media-type iso" /tmp/mondo-restore.cfg ; then
|
---|
16 | LogIt "Config file is fine, BTW."
|
---|
17 | exit 0
|
---|
18 | fi
|
---|
19 |
|
---|
20 | LogIt "Re-jigging mondo-restore.cfg because you backed up to ISOs and then burned them to CDs" 1
|
---|
21 | mv -f /tmp/mondo-restore.cfg /tmp/mrco
|
---|
22 | cat /tmp/mrco | sed 's/backup-media-type iso/backup-media-type cdr/' > /tmp/mondo-restore.cfg
|
---|
23 | LogIt "Done re-jigging. Yay."
|
---|
24 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.