git://git.onelab.eu
/
bootcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d43ef1c
)
- fix NET_DEVICE parsing implementation to match the comment,
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 21 Aug 2006 20:23:00 +0000
(20:23 +0000)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/conf_files/pl_netinit
b/conf_files/pl_netinit
index
853543c
..
cd48730
100644
(file)
--- 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