diff options
author | Bill Nottingham <notting@redhat.com> | 2011-04-07 11:29:10 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-04-12 09:52:26 -0400 |
commit | 4cab9b8f86d9ffa0b7d850b87ac62cca508a3bd9 (patch) | |
tree | 403ed5bb2fd248fb0f52f8886f98a8c1928e47f9 | |
parent | c220622f1c4336cd2882d02f676cdf0ab8fff74c (diff) | |
download | initscripts-4cab9b8f86d9ffa0b7d850b87ac62cca508a3bd9.tar initscripts-4cab9b8f86d9ffa0b7d850b87ac62cca508a3bd9.tar.gz initscripts-4cab9b8f86d9ffa0b7d850b87ac62cca508a3bd9.tar.bz2 initscripts-4cab9b8f86d9ffa0b7d850b87ac62cca508a3bd9.tar.xz initscripts-4cab9b8f86d9ffa0b7d850b87ac62cca508a3bd9.zip |
Make sure the bond exists when we bring up the slaves. (#694501)
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 0121d33f..1fb6837f 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 } |