aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-06-24 03:35:24 +0000
committerBill Nottingham <notting@redhat.com>2003-06-24 03:35:24 +0000
commit642f9be2bce629712adc76374f472f7e9f691361 (patch)
treea5622253a5cec9ba5a8e3d91962a65d3699f8a10
parenta9405effe269ad57346b215b8c881189333b190f (diff)
downloadinitscripts-642f9be2bce629712adc76374f472f7e9f691361.tar
initscripts-642f9be2bce629712adc76374f472f7e9f691361.tar.gz
initscripts-642f9be2bce629712adc76374f472f7e9f691361.tar.bz2
initscripts-642f9be2bce629712adc76374f472f7e9f691361.tar.xz
initscripts-642f9be2bce629712adc76374f472f7e9f691361.zip
get rid of an extraneous error message
-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 f20af64d..ba649c12 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -141,7 +141,7 @@ is_available ${REALDEVICE}
# remap, if the device is bound with a MAC address and not the right device num
# bail out, if the MAC does not fit
if [ -n "${HWADDR}" ]; then
- FOUNDMACADDR=`LC_ALL= LANG= ip -o link show ${REALDEVICE} | \
+ FOUNDMACADDR=`LC_ALL= LANG= ip -o link show ${REALDEVICE} 2>/dev/null| \
sed 's/.*link\/ether \([[:alnum:]:]*\).*/\1/'`
if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
/sbin/nameif "${REALDEVICE}" "${HWADDR}" || {