summaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-09-23 01:13:54 +0000
committerBill Nottingham <notting@redhat.com>2004-09-23 01:13:54 +0000
commit48b7eb026e8c9d010ecbe6cf760f042b39ddefc2 (patch)
tree1b61e2cc738574d2ffad74e916e43ed9cf6dffe0 /sysconfig/network-scripts/ifup
parentc7433f688c5d200ce7e42fba6e53bc0d0c96c647 (diff)
backport
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index aee876a4..1a680082 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -147,7 +147,7 @@ is_available ${REALDEVICE}
if [ -n "${HWADDR}" ]; then
FOUNDMACADDR=`get_hwaddr ${REALDEVICE}`
if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
- curdev=`ip -o link | awk -F ':' -vIGNORECASE=1 '/$HWADDR/ { print $2 }'`
+ 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."
exit 1