Changeset 3445 in MondoRescue for branches


Ignore:
Timestamp:
Aug 29, 2015, 2:56:36 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • If cloning use the frst NIC in case of need of start-netfs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/rootfs/usr/sbin/start-netfs

    r3444 r3445  
    102102
    103103            if [ "$oldipdev" = "$ipdev" ]; then
    104                 # We didn't find a new device for this MAC
    105                 LogIt "WARN: Interface $ipdev kept despite it doesn't match the $hwaddr MAC address"
    106                 ipdev=$oldipdev
    107             fi
    108 
    109             # TODO: Should we do that ?
    110             if [ "$hwaddr" = "" ]; then
    111                 # No hwaddr stored at backup
    112                 # take the first interface and hope it's good
     104                # We didn't find a new device for this MAC and it doesn't exist
     105                # Take the first interface and hope it's good
    113106                ipdev=`ifconfig -a | grep HWaddr | awk '{print $1}' | head -1`
     107                LogIt "WARN: Using $ipdev as no device matches the MAC address $hwaddr"
    114108            fi
    115109        fi
Note: See TracChangeset for help on using the changeset viewer.