aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-11-07 15:00:01 +0000
committerBill Nottingham <notting@redhat.com>2003-11-07 15:00:01 +0000
commit0b9291d33656cedb90958aa17dd1978fd9db7d37 (patch)
treecf0bb3e3cb56aa42e3d0ebbf4c6ab7869e5dad69
parent785e7dc6abd08ce3830bf27575d26283548d1498 (diff)
downloadinitscripts-0b9291d33656cedb90958aa17dd1978fd9db7d37.tar
initscripts-0b9291d33656cedb90958aa17dd1978fd9db7d37.tar.gz
initscripts-0b9291d33656cedb90958aa17dd1978fd9db7d37.tar.bz2
initscripts-0b9291d33656cedb90958aa17dd1978fd9db7d37.tar.xz
initscripts-0b9291d33656cedb90958aa17dd1978fd9db7d37.zip
get rid of 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 8e609072..447105ae 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -126,7 +126,7 @@ if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" -a \
fi
# master device?
-if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE | grep -q "driver: bonding" ; then
+if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE 2>/dev/null| grep -q "driver: bonding" ; then
ifconfig ${DEVICE} up
for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do
/sbin/ifup ${device##*/}