Last change
on this file since 2703 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:executable
set to
*
|
File size:
693 bytes
|
Rev | Line | |
---|
[1698] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # $Id$
|
---|
| 4 | #
|
---|
| 5 | # This script sets up the USB media
|
---|
| 6 | #
|
---|
| 7 |
|
---|
| 8 | # Get info from config file
|
---|
[1983] | 9 | usbdev=`grep usb-dev /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-`
|
---|
[1698] | 10 |
|
---|
| 11 | # info from cmdline are predominent
|
---|
| 12 | for i in `cat /proc/cmdline` ; do
|
---|
| 13 | echo $i | grep -qi usb= && usbdev=`echo $i | cut -d= -f2`
|
---|
| 14 | done
|
---|
| 15 |
|
---|
| 16 | if [ $usbdev = "" ]; then
|
---|
| 17 | # No usb configuration neither stored during archive
|
---|
| 18 | # nor on cmdline so no usb wanted => exiting
|
---|
| 19 | exit 0
|
---|
| 20 | fi
|
---|
| 21 |
|
---|
[1732] | 22 | echo -en "Mounting USB device (${usbdev}1) on /mnt/cdrom..."
|
---|
[1729] | 23 | /sbin/modprobe usb-storage
|
---|
[1732] | 24 | for i in 1 2 3 4 5 6 7 8 9 10 ; do
|
---|
| 25 | sleep 1
|
---|
| 26 | echo -en "."
|
---|
| 27 | done
|
---|
| 28 | mount -t vfat ${usbdev}1 /mnt/cdrom && LogIt "USB device (${usbdev}1) mounted on /mnt/cdrom"
|
---|
| 29 | echo "."
|
---|
Note:
See
TracBrowser
for help on using the repository browser.