From 8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 22 Jun 2007 21:18:44 +0000 Subject: - ifup-eth: set 'primary' later for bonding devices (#236897, ) --- sysconfig/network-scripts/ifup-eth | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index dd1907de..ffbd2e3b 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -134,6 +134,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 if [ -n "${MTU}" ]; then -- cgit v1.2.1