aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-06-22 21:17:31 +0000
committerBill Nottingham <notting@redhat.com>2007-06-22 21:17:31 +0000
commit1a98c7e9cf507e447a355079d7a78ed5fa3e18fe (patch)
tree5a84c498a7d06022f6608dbc69df4c857861c9e2 /sysconfig/network-scripts
parenta6f44fcd86f041c86a00e140924037eff2e7b18d (diff)
downloadinitscripts-1a98c7e9cf507e447a355079d7a78ed5fa3e18fe.tar
initscripts-1a98c7e9cf507e447a355079d7a78ed5fa3e18fe.tar.gz
initscripts-1a98c7e9cf507e447a355079d7a78ed5fa3e18fe.tar.bz2
initscripts-1a98c7e9cf507e447a355079d7a78ed5fa3e18fe.tar.xz
initscripts-1a98c7e9cf507e447a355079d7a78ed5fa3e18fe.zip
set 'primary' later for bonding devices (#236897, <agospoda@redhat.com>)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth9
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