Changeset 2924 in MondoRescue
- Timestamp:
- Dec 22, 2011, 11:58:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r2923 r2924 1539 1539 echo "Transforming $USBDEVICE in a Bootable device" >> $LOGFILE 1540 1540 echo "Checking $USBDEVICE" >> $LOGFILE 1541 $FDISK -l $USBDEVICE 2>> $LOGFILE 1> $MINDI_TMP/fdisk.log 1542 cat $MINDI_TMP/fdisk.log >> $LOGFILE 1541 $FDISK -l $USBDEVICE 2>&1 >> $LOGFILE 1543 1542 if [ $? -ne 0 ]; then 1544 1543 echo "Unable to access $USBDEVICE" | tee -a $LOGFILE … … 1571 1570 t 1572 1571 b 1573 w1574 EOF1575 # Search for bootable flag1576 grep '* ' $MINDI_TMP/fdisk.log | grep $USBDEVICE1577 if [ $? -ne 0 ]; then1578 cat >> $MINDI_TMP/fdisk.txt << EOF1579 1572 a 1580 1573 1 1581 1574 w 1582 1575 EOF 1583 fi1584 1576 $FDISK $USBDEVICE 2>> $LOGFILE 1>> $LOGFILE < $MINDI_TMP/fdisk.txt 1585 1577 if [ $? -ne 0 ]; then … … 1593 1585 cat $MINDI_TMP/fdisk.txt >> $LOGFILE 1594 1586 echo "----------------" >> $LOGFILE 1595 rm -f $MINDI_TMP/fdisk. log $MINDI_TMP/fdisk.txt1587 rm -f $MINDI_TMP/fdisk.txt 1596 1588 echo "The USB device $USBDEVICE now looks like this:" >> $LOGFILE 1597 1589 $FDISK -l $USBDEVICE 2>&1 | tee -a $LOGFILE
Note:
See TracChangeset
for help on using the changeset viewer.