Ignore:
Timestamp:
Mar 17, 2010, 3:55:28 AM (9 years ago)
Author:
bruno
Message:

r3737@localhost: bruno | 2010-03-14 20:57:44 +0100

  • Suppress the USE_UDEV file and use the conf file instead in mindi
File:
1 edited

Legend:

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

    r2594 r2596  
    675675    # Retry failed udev events now that local filesystems are mounted read-write
    676676    # (useful for rules creating network ifcfg files)
    677     if [ -e "$MINDI_CACHE/USE-UDEV" ] ; then
     677    if [ "$USE_UDEV" = "yes" ]; then
    678678        if [ -x /sbin/udevadm ]; then
    679679            udaver=`/sbin/udevadm --version`
     
    751751fi
    752752
    753 if [ -e "$MINDI_CACHE/USE-UDEV" ] ; then
     753USE_UDEV=""
     754if [ -f $MINDI_CACHE/mondorestore.cfg ]; then
     755    USE_UDEV=`grep "use_udev" $MINDI_CACHE/mondorestore.cfg | cut -d' ' -f2`
     756fi
     757if [ "$USE_UDEV" = "yes" ]; then
    754758    RunUdevd
    755759fi
     
    776780fi
    777781
    778 if [ -f $MINDI_CACHE/mondorestore.cfg ] && [ "`grep -i 'obdr ' $MINDI_CACHE/mondorestore.cfg 2>/dev/null`" ] || [ "`grep -i ' udev' $MINDI_CACHE/mondorestore.cfg 2>/dev/null`" ]; then
     782if [ -f $MINDI_CACHE/mondorestore.cfg ] && [ "`grep -i 'obdr ' $MINDI_CACHE/mondorestore.cfg 2>/dev/null`" ]; then
    779783    HandleTape
    780784    ExtractDataDisksAndLoadModules
     
    876880
    877881# Not sure it's still needed, but shouldn't hurt
    878 if [ -e "/tmp/USE-UDEV" ] ; then
     882if [ "$USE_UDEV" = "yes" ]; then
    879883    if [ -x /sbin/udevadm ]; then
    880884        /sbin/udevadm trigger --retry-failed
    881885    fi
     886
    882887fi
    883888if [ -f $MINDI_CACHE/mondorestore.cfg ] && [ grep "backup-media-type" $MINDI_CACHE/mondorestore.cfg > /dev/null 2> /dev/null ]; then
Note: See TracChangeset for help on using the changeset viewer.