From: Mark Huang Date: Mon, 21 Aug 2006 20:23:00 +0000 (+0000) Subject: - fix NET_DEVICE parsing implementation to match the comment, X-Git-Tag: bootcd-3.4-2~59 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=92ff38cc2d55318d58d5be21c54b12970a98448a;p=bootcd.git - fix NET_DEVICE parsing implementation to match the comment, i.e. accept device name as well. Also cast NET_DEVICE to lowercase so that MAC addresses can be compared properly. --- diff --git a/conf_files/pl_netinit b/conf_files/pl_netinit index 853543c..cd48730 100644 --- a/conf_files/pl_netinit +++ b/conf_files/pl_netinit @@ -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