From 3de0e06afda2e572d0952941498446fdda7f3f42 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 7 Apr 2011 11:29:10 -0400 Subject: Make sure the bond exists when we bring up the slaves. (#694501) --- sysconfig/network-scripts/ifup-eth | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysconfig') 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 } -- cgit v1.2.1