aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-07-14 19:23:22 +0000
committerBill Nottingham <notting@redhat.com>2004-07-14 19:23:22 +0000
commitc0784ea8774e2f56d6775b9a54e728ecad53361f (patch)
treeec9655e636357944eeabaabead828a415e4bced7 /sysconfig/network-scripts/ifup
parentd346b4bd02aa38441212f2f2f6ddb0133587aad3 (diff)
downloadinitscripts-c0784ea8774e2f56d6775b9a54e728ecad53361f.tar
initscripts-c0784ea8774e2f56d6775b9a54e728ecad53361f.tar.gz
initscripts-c0784ea8774e2f56d6775b9a54e728ecad53361f.tar.bz2
initscripts-c0784ea8774e2f56d6775b9a54e728ecad53361f.tar.xz
initscripts-c0784ea8774e2f56d6775b9a54e728ecad53361f.zip
fix bonding + no IP (#127285)
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 4f8c2ad4..41d8821a 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -323,6 +323,13 @@ else
if [ -z "${IPADDR}" ]; then
# enable device without IP, useful for e.g. PPPoE
ip link set dev ${REALDEVICE} up
+ # Bonding initialization part II
+ if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE 2>/dev/null| grep -q "driver: bonding" ; then
+ for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do
+ /sbin/ifup ${device##*/}
+ done
+ fi
+
if [ "${NETWORKING_IPV6}" = "yes" ]; then
/etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG}
fi