diff options
author | Bill Nottingham <notting@redhat.com> | 2004-07-14 19:25:24 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-07-14 19:25:24 +0000 |
commit | 9f29ebca4d38fc6553712124795695bbe6726d1f (patch) | |
tree | 978769aabe9c2b3746834dab52bbdf560facd24c /sysconfig | |
parent | 9c3f4661a5f1e4dc5f5da07cf03dd3bb6f90c3e9 (diff) | |
download | initscripts-9f29ebca4d38fc6553712124795695bbe6726d1f.tar initscripts-9f29ebca4d38fc6553712124795695bbe6726d1f.tar.gz initscripts-9f29ebca4d38fc6553712124795695bbe6726d1f.tar.bz2 initscripts-9f29ebca4d38fc6553712124795695bbe6726d1f.tar.xz initscripts-9f29ebca4d38fc6553712124795695bbe6726d1f.zip |
fix bonding + no IP (#127825)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 9e89dbd5..8e1026a7 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -287,6 +287,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 |