diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-01-09 12:05:50 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-01-09 12:05:50 +0100 |
commit | 064eed4923b7af7141c121a3935b4c0f22c837e8 (patch) | |
tree | 78ff542dd8f680757bc1cf99f2e9d0c66774bcc4 /sysconfig | |
parent | 6edea1d706f69318c82e4414ba2398da7d994e61 (diff) | |
download | initscripts-064eed4923b7af7141c121a3935b4c0f22c837e8.tar initscripts-064eed4923b7af7141c121a3935b4c0f22c837e8.tar.gz initscripts-064eed4923b7af7141c121a3935b4c0f22c837e8.tar.bz2 initscripts-064eed4923b7af7141c121a3935b4c0f22c837e8.tar.xz initscripts-064eed4923b7af7141c121a3935b4c0f22c837e8.zip |
Call ip link up on master after slaves are up (#893395)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 7dc9fc67..be225c85 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -118,14 +118,15 @@ fi # Bonding initialization. For DHCP, we need to enslave the devices early, # so it can actually get an IP. if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then - /sbin/ip link set dev ${DEVICE} up - [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} install_bonding_driver ${DEVICE} for device in $(LANG=C egrep -l "^[[:space:]]*MASTER=\"?${DEVICE}\"?[[:space:]]*$" /etc/sysconfig/network-scripts/ifcfg-*) ; do is_ignored_file "$device" && continue /sbin/ifup ${device##*/} done + /sbin/ip link set dev ${DEVICE} up + [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} + # add the bits to setup the needed post enslavement parameters for arg in $BONDING_OPTS ; do key=${arg%%=*}; |