From dd41384829d3448d9b71cd1c2d8048a9201e5003 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Jun 2008 11:40:18 -0400 Subject: Revert "don't do something odd if we find a mac address that matches the user-set MACADDR (#251415)" Does not solve the issue, causes a regression in Fedora. (#450210) This reverts commit 4912889cbc00cfe36945c7d57f8c15acf1f45333. --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 2f8257b2..a1a8eff3 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -158,7 +158,7 @@ is_available ${REALDEVICE} # bail out, if the MAC does not fit if [ -n "${HWADDR}" ]; then FOUNDMACADDR=`get_hwaddr ${REALDEVICE}` - if [ "${FOUNDMACADDR}" != "${HWADDR}" -a "${FOUNDMACADDR}" != "${MACADDR}" ]; then + if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then curdev=`ip -o link | awk -F ':' -vIGNORECASE=1 "/$HWADDR/ { print \\$2 }"` [ -n "$curdev" ] && rename_device "${REALDEVICE}" "${HWADDR}" "${curdev}" || { echo $"Device ${DEVICE} has different MAC address than expected, ignoring." -- cgit