From 957315893570ebf9813e9199868a70f31bc82fb5 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 19 Oct 2006 19:28:10 +0000 Subject: just enslave once, seems to work now --- sysconfig/network-scripts/ifup-eth | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index fd0d4bc2..7c94e310 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -123,12 +123,10 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then /sbin/ip link set dev ${DEVICE} up [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} - if [ "$BOOTPROTO" = "dhcp" ]; then - for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do + for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do is_ignored_file "$device" && continue /sbin/ifup ${device##*/} - done - fi + done fi # this isn't the same as the MAC in the configuration filename. It is @@ -204,13 +202,6 @@ else /sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS fi [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} - # Bonding initialization part II - if is_bonding_device ${DEVICE} ; then - for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do - is_ignored_file "$device" && continue - /sbin/ifup ${device##*/} - done - fi if [ "${NETWORKING_IPV6}" = "yes" ]; then /etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG} @@ -280,21 +271,6 @@ else fi fi -# Bonding initialization part II - for static, enslave the devices. For -# DHCP, remove any routes for the slaves. -if is_bonding_device ${DEVICE} ; then - for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do - is_ignored_file "$device" && continue - if [ "$BOOTPROTO" = "dhcp" ]; then - DEV=$DEVICE - (. $device - echo "-${DEVICE}" > /sys/class/net/${DEV}/bonding/slaves 2>/dev/null - ) - fi - /sbin/ifup ${device##*/} - done -fi - # Add Zeroconf route. if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; then ip route replace 169.254.0.0/16 dev ${REALDEVICE} -- cgit v1.2.1