aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-11-07 14:59:38 +0000
committerBill Nottingham <notting@redhat.com>2003-11-07 14:59:38 +0000
commit99ee9105699e368892bfc04f2cda951e4ab1d10d (patch)
treeff2cee96dda263694241322f6c646f14de596682 /sysconfig/network-scripts/ifup
parent5d562ad428631738d1b7cc86c4efed07bea3817d (diff)
downloadinitscripts-99ee9105699e368892bfc04f2cda951e4ab1d10d.tar
initscripts-99ee9105699e368892bfc04f2cda951e4ab1d10d.tar.gz
initscripts-99ee9105699e368892bfc04f2cda951e4ab1d10d.tar.bz2
initscripts-99ee9105699e368892bfc04f2cda951e4ab1d10d.tar.xz
initscripts-99ee9105699e368892bfc04f2cda951e4ab1d10d.zip
get rid of error message
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-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 fa646669..5880bd25 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -209,7 +209,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
/sbin/ip link set dev ${DEVICE} up
for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do
/sbin/ifup ${device##*/}