aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-09-14 14:36:07 +0000
committerBill Nottingham <notting@redhat.com>2007-09-14 14:36:07 +0000
commit40fedebd0e3553536f485f1e1e7e2271980ad256 (patch)
tree047db41fdb31df3a0463af13f7b9350edbf21fc3 /sysconfig
parentee1941bffa182b87e80c920f534e54c72d2f5c34 (diff)
downloadinitscripts-40fedebd0e3553536f485f1e1e7e2271980ad256.tar
initscripts-40fedebd0e3553536f485f1e1e7e2271980ad256.tar.gz
initscripts-40fedebd0e3553536f485f1e1e7e2271980ad256.tar.bz2
initscripts-40fedebd0e3553536f485f1e1e7e2271980ad256.tar.xz
initscripts-40fedebd0e3553536f485f1e1e7e2271980ad256.zip
handle arp_ip_target separately (#288151, <agospoda@redhat.com>)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 9ac6d4b9..a5e03f6a 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -137,7 +137,16 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then
for arg in $BONDING_OPTS ; do
key=${arg%%=*};
value=${arg##*=};
- echo $value > /sys/class/net/${DEVICE}/bonding/$key
+ if [ "${key}" = "arp_ip_target" ]; then
+ OLDIFS=$IFS;
+ IFS=',';
+ for arp_ip in $value; do
+ echo +$arp_ip > /sys/class/net/${DEVICE}/bonding/$key
+ done
+ IFS=$OLDIFS;
+ else
+ echo $value > /sys/class/net/${DEVICE}/bonding/$key
+ fi
done
/sbin/ip link set dev ${DEVICE} up