Last change
on this file since 2622 was 2603, checked in by Bruno Cornec, 14 years ago |
r3757@localhost: bruno | 2010-03-17 15:05:13 +0100
- Adds a new interface param between mondoarchive and mindi for backup-media-type which was missing
- Improve again logging
- Try to improve keymap support
- Remove some remaining hard coded /proc/cmdline
- Adds a cache for the find command for modules launched twice to make it quicker on my Atom netboot in a QEMU VM
- Remove dependency at build time on mindi to only use MINDI_CONF env var
|
-
Property svn:keywords
set to
Id
|
File size:
718 bytes
|
Rev | Line | |
---|
[1] | 1 | #!/bin/sh
|
---|
[275] | 2 | #
|
---|
| 3 | # $Id: hack-cfg-if-necessary 2603 2010-03-22 12:56:30Z bruno $
|
---|
| 4 | #
|
---|
[1] | 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 |
|
---|
[2591] | 18 | if [ -f $MINDI_CACHE/mondorestore.cfg ]; then
|
---|
[2603] | 19 | grep -q "backup-media-type iso" $MINDI_CACHE/mondorestore.cfg 2> /dev/null
|
---|
| 20 | if [ $? -ne 0 ] ; then
|
---|
[2591] | 21 | LogIt "Config file is fine, BTW."
|
---|
| 22 | exit 0
|
---|
| 23 | fi
|
---|
| 24 | LogIt "Re-jigging mondorestore.cfg because you backed up to ISOs and then burned them to CDs" 1
|
---|
| 25 | sed -i 's/backup-media-type iso/backup-media-type cdr/' $MINDI_CACHE/mondorestore.cfg
|
---|
| 26 | LogIt "Done re-jigging. Yay."
|
---|
| 27 | fi
|
---|
[1] | 28 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.