aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-04-07 11:29:10 -0400
committerBill Nottingham <notting@redhat.com>2011-04-07 11:29:10 -0400
commit3de0e06afda2e572d0952941498446fdda7f3f42 (patch)
treeeb235d1dfeac85818b7837bef9939de66d7db5de
parent5ad0de2a6ea61d3bc6c6991227c92862dc83cd58 (diff)
downloadinitscripts-3de0e06afda2e572d0952941498446fdda7f3f42.tar
initscripts-3de0e06afda2e572d0952941498446fdda7f3f42.tar.gz
initscripts-3de0e06afda2e572d0952941498446fdda7f3f42.tar.bz2
initscripts-3de0e06afda2e572d0952941498446fdda7f3f42.tar.xz
initscripts-3de0e06afda2e572d0952941498446fdda7f3f42.zip
Make sure the bond exists when we bring up the slaves. (#694501)
-rwxr-xr-xsysconfig/network-scripts/ifup-eth3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 79669c0c..836243a0 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -94,7 +94,8 @@ is_wireless_device ${DEVICE} && . ./ifup-wireless
# slave device?
if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" ]; then
- grep -wq "${DEVICE}" /sys/class/net/${MASTER}/bonding/slaves || {
+ install_bonding_driver ${MASTER}
+ grep -wq "${DEVICE}" /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null || {
/sbin/ip link set dev ${DEVICE} down
echo "+${DEVICE}" > /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null
}