From 92ff38cc2d55318d58d5be21c54b12970a98448a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 21 Aug 2006 20:23:00 +0000 Subject: [PATCH] - 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. --- conf_files/pl_netinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.0