From 1a98c7e9cf507e447a355079d7a78ed5fa3e18fe Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 22 Jun 2007 21:17:31 +0000 Subject: set 'primary' later for bonding devices (#236897, ) --- sysconfig/network-scripts/ifup-eth | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 44bf0f6d..c5c4844d 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -140,6 +140,15 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then is_ignored_file "$device" && continue /sbin/ifup ${device##*/} done + + # add the bits to setup the needed post enslavement parameters + for arg in $BONDING_OPTS ; do + key=${arg%%=*}; + value=${arg##*=}; + if [ "${key}" = "primary" ]; then + echo $value > /sys/class/net/${DEVICE}/bonding/$key + fi + done fi -- cgit v1.2.1