diff options
author | Bill Nottingham <notting@redhat.com> | 2006-02-28 23:43:04 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-02-28 23:43:04 +0000 |
commit | a47b5d0d87dcd789baa6449eb62ead41645e96c6 (patch) | |
tree | 4c232654526fe9cf42f041d565662e0c450c3c4e /sysconfig/network-scripts/ifup-eth | |
parent | 9b704b94a6b5902a045c63eebbb5109bed864615 (diff) | |
download | initscripts-a47b5d0d87dcd789baa6449eb62ead41645e96c6.tar initscripts-a47b5d0d87dcd789baa6449eb62ead41645e96c6.tar.gz initscripts-a47b5d0d87dcd789baa6449eb62ead41645e96c6.tar.bz2 initscripts-a47b5d0d87dcd789baa6449eb62ead41645e96c6.tar.xz initscripts-a47b5d0d87dcd789baa6449eb62ead41645e96c6.zip |
array variables are bad. use $IFS with '/', as that is illegal in
net device names. coalesce some things into a function.
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 45efb881..d66ba5af 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -40,7 +40,7 @@ is_available ${REALDEVICE} if [ -n "${HWADDR}" ]; then FOUNDMACADDR=`get_hwaddr ${REALDEVICE}` if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then - curdev=`ip -o link | grep -v link/ieee802.11 | awk -F ': ' -vIGNORECASE=1 "/$HWADDR/ { print \\$2 }"` + curdev=`get_device_by_hwaddr ${HWADDR}` if [ -n "$curdev" ]; then rename_device "${REALDEVICE}" "${HWADDR}" "${curdev}" || { echo $"Device ${DEVICE} has different MAC address than expected, ignoring." |