aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-07-14 19:26:21 +0000
committerBill Nottingham <notting@redhat.com>2004-07-14 19:26:21 +0000
commit9975ee15a9ad7500d966aeb82fac8cfc63a561d2 (patch)
treefac4582d6e432601e89fc2100eaeec0adacee86e /sysconfig/network-scripts
parent899cf5275d8b62e18549733c747da6b107f2a637 (diff)
downloadinitscripts-9975ee15a9ad7500d966aeb82fac8cfc63a561d2.tar
initscripts-9975ee15a9ad7500d966aeb82fac8cfc63a561d2.tar.gz
initscripts-9975ee15a9ad7500d966aeb82fac8cfc63a561d2.tar.bz2
initscripts-9975ee15a9ad7500d966aeb82fac8cfc63a561d2.tar.xz
initscripts-9975ee15a9ad7500d966aeb82fac8cfc63a561d2.zip
fix bonding + no IP (#127825)
Diffstat (limited to 'sysconfig/network-scripts')
-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 637dcda5..f2723263 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -200,6 +200,13 @@ else
if [ -z "${IPADDR}" ]; then
# enable device without IP, useful for e.g. PPPoE
ip link set ${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