diff options
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 9 |
1 files changed, 9 insertions, 0 deletions
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 |