- fix NET_DEVICE parsing implementation to match the comment,
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 21 Aug 2006 20:23:00 +0000 (20:23 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 21 Aug 2006 20:23:00 +0000 (20:23 +0000)
  i.e. accept device name as well. Also cast NET_DEVICE to lowercase so
  that MAC addresses can be compared properly.

conf_files/pl_netinit

index 853543c..cd48730 100644 (file)
@@ -261,7 +261,7 @@ if [[ -n "$NET_DEVICE" ]]; then
        dev_address=`cat $device/address | tr A-Z a-z`
        if [ "$device" == "$NET_DEVICE" -o "$dev_address" == "$NET_DEVICE" ]; then
            ETH_DEVICE=$device
-           echo "pl_netinit: found device $ETH_DEVICE with mac address $NET_DEVICE"
+           echo "pl_netinit: found device $ETH_DEVICE with mac address $dev_address"
            break
        fi
     done