Changeset 1698 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Oct 22, 2007, 1:33:59 AM (17 years ago)
Author:
Bruno Cornec
Message:

Add USB support at restore time (no test done yet). New start-usb script
PB varibale added where useful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1643 r1698  
    439439# ------------------------ main -----------------------
    440440
    441 MINDI_VER=VVV
    442 MINDI_REV=RRR
     441MINDI_VER=PBVER
     442MINDI_REV=PBREV
    443443trap CaughtSoftReset SIGTERM
    444444LOGFILE=/var/log/mondorestore.log
     
    475475fi
    476476
    477 if [ "`grep -i 'tape ' /tmp/mondo-restore.cfg`" ] || [ "`grep -i udev /tmp/mondo-restore.cfg`" ] ; then
     477if [ "`grep -i 'tape ' /tmp/mondo-restore.cfg`" ] || [ "`grep -i udev /tmp/mondo-restore.cfg`" ]; then
    478478    HandleTape
    479479    ExtractDataDisksAndLoadModules
     
    481481    # We need to get here exported variables from start-nfs
    482482    . /sbin/start-nfs
     483
     484    # Simulate a local CD
     485    echo "/mnt/cdrom" > /tmp/CDROM-LIVES-HERE
     486    CD_MOUNTED_OK=yes
     487    ExtractDataDisksAndLoadModules
     488elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg | grep media-type`" ]; then
     489    # We need to get here exported variables from start-nfs
     490    . /sbin/start-usb
    483491
    484492    # Simulate a local CD
Note: See TracChangeset for help on using the changeset viewer.