aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-08-20 19:47:21 +0000
committerBill Nottingham <notting@redhat.com>2003-08-20 19:47:21 +0000
commit49abadeb543460b646430ee0837e33a4fa43db7d (patch)
treecb62cc53e08358e765c5795343fb19afe60342c8
parent9ab9e2d37331d0091b2929b5245f0cfc10b31a4a (diff)
downloadinitscripts-49abadeb543460b646430ee0837e33a4fa43db7d.tar
initscripts-49abadeb543460b646430ee0837e33a4fa43db7d.tar.gz
initscripts-49abadeb543460b646430ee0837e33a4fa43db7d.tar.bz2
initscripts-49abadeb543460b646430ee0837e33a4fa43db7d.tar.xz
initscripts-49abadeb543460b646430ee0837e33a4fa43db7d.zip
fix use of local
-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 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