diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-20 19:47:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-20 19:47:44 +0000 |
commit | 709427015b773e88e4ddf4beb722c4f3d2ae0c73 (patch) | |
tree | 0ad9a474871dad2be9783729e20c13203406a376 /sysconfig/network-scripts | |
parent | c105523aebba484c251b41e3175846e09d7735bd (diff) | |
download | initscripts-709427015b773e88e4ddf4beb722c4f3d2ae0c73.tar initscripts-709427015b773e88e4ddf4beb722c4f3d2ae0c73.tar.gz initscripts-709427015b773e88e4ddf4beb722c4f3d2ae0c73.tar.bz2 initscripts-709427015b773e88e4ddf4beb722c4f3d2ae0c73.tar.xz initscripts-709427015b773e88e4ddf4beb722c4f3d2ae0c73.zip |
fix use of local
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 9c6945ad..123790aa 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -143,7 +143,7 @@ is_available ${REALDEVICE} if [ -n "${HWADDR}" ]; then FOUNDMACADDR=`get_hwaddr ${REALDEVICE}` if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then - local curdev=`ip -o link | awk -F ':' -vIGNORECASE=1 '/$HWADDR/ { print $2 }'` + curdev=`ip -o link | awk -F ':' -vIGNORECASE=1 '/$HWADDR/ { print $2 }'` rename_device "${REALDEVICE}" "${HWADDR}" "${curdev}" || { echo $"Device ${DEVICE} has different MAC address than expected, ignoring." exit 1 |