aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-04-07 11:29:10 -0400
committerPetr Lautrbach <plautrba@redhat.com>2011-08-15 10:03:10 +0200
commitb37b2cee81ba4633e865621bfb73c7910584edd0 (patch)
tree57978fc2e673e65a40c9c1c96df49f5f1e84a2e0 /sysconfig/network-scripts
parent5dc99fe1052d8be9b9c0aff47bbff8cb858489d7 (diff)
downloadinitscripts-b37b2cee81ba4633e865621bfb73c7910584edd0.tar
initscripts-b37b2cee81ba4633e865621bfb73c7910584edd0.tar.gz
initscripts-b37b2cee81ba4633e865621bfb73c7910584edd0.tar.bz2
initscripts-b37b2cee81ba4633e865621bfb73c7910584edd0.tar.xz
initscripts-b37b2cee81ba4633e865621bfb73c7910584edd0.zip
Make sure the bond exists when we bring up the slaves. (#694501)
Diffstat (limited to 'sysconfig/network-scripts')
-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 df6d5c6d..63ee1030 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -99,7 +99,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
}