diff options
author | Bill Nottingham <notting@redhat.com> | 2004-09-23 00:08:59 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-09-23 00:08:59 +0000 |
commit | 675824f5b0bac11344d90716446475e333732805 (patch) | |
tree | b8fef8c447bd4dab4bb69ce64676cbe5652347d1 /sysconfig/network-scripts | |
parent | 7b186a850248010b7bf59eb1fa477fa21b963eb8 (diff) | |
download | initscripts-675824f5b0bac11344d90716446475e333732805.tar initscripts-675824f5b0bac11344d90716446475e333732805.tar.gz initscripts-675824f5b0bac11344d90716446475e333732805.tar.bz2 initscripts-675824f5b0bac11344d90716446475e333732805.tar.xz initscripts-675824f5b0bac11344d90716446475e333732805.zip |
fix shell quoting
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 2 | ||||
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 49c82c06..346275e7 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 diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 570e9ced..c3493a75 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -190,7 +190,7 @@ is_available () # trying to rename it: configure_ccwgroup_device if [ -n "$HWADDR" ]; then - local curdev=`ip -o link | awk -F ':' -vIGNORECASE=1 '/$HWADDR/ { print $2 }'` + local curdev=`ip -o link | awk -F ':' -vIGNORECASE=1 "/$HWADDR/ { print \$2 }"` if [ -z "$curdev" ]; then return 1 fi |