source: MondoRescue/branches/2.2.7/mindi/rootfs/sbin/hack-cfg-if-necessary@ 1983

Last change on this file since 1983 was 1983, checked in by Bruno Cornec, 16 years ago
  • Remove aux-tools dir in mindi (either scripts moved or removed)
  • Remove isolinux and syslinux static files from mindi. Now generated
  • Remove lilo support for ia32 now useless in mindi
  • Remoce empty directories in rootfs in mindi
  • Remove HackSyslinuxFile, CopyBootBFile, FindLiloBinary, FindSensibleBootBFile, MakeSyslinuxMessageFile, MakeLiloConfFile, ReplaceIndividualLine in mindi
  • Adds a single MakeBootConfFile function to dynamiclly create needed conf files in mindi
  • Avoids error messages when using only mindi with a non-existant /tmp/mondo-restore.cfg
  • Property svn:keywords set to Id
File size: 636 bytes
Line 
1#!/bin/sh
2#
3# $Id: hack-cfg-if-necessary 1983 2008-06-16 19:40:42Z bruno $
4#
5
6if ! mount | grep cdrom ; then
7 LogIt "CD-ROM is not mounted. Darn."
8 exit 0
9fi
10
11if ! ls /mnt/cdrom/archives/* > /dev/null 2> /dev/null ; then
12 LogIt "Can't find /mnt/cdrom/archives; darn."
13 exit 0
14fi
15
16LogIt "OK, we've found /mnt/cdrom/archives/*; great."
17
18if ! grep "backup-media-type iso" /tmp/mondo-restore.cfg 2 > /dev/null ; then
19 LogIt "Config file is fine, BTW."
20 exit 0
21fi
22
23LogIt "Re-jigging mondo-restore.cfg because you backed up to ISOs and then burned them to CDs" 1
24sed -i 's/backup-media-type iso/backup-media-type cdr/' /tmp/mondo-restore.cfg
25LogIt "Done re-jigging. Yay."
26exit 0
Note: See TracBrowser for help on using the repository browser.