diff options
author | Bill Nottingham <notting@redhat.com> | 2008-01-10 19:30:55 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-01-10 19:30:55 +0000 |
commit | ac5703b96f655a74f3b74c53f2e90b35d9d29823 (patch) | |
tree | 9633053cd5a2c3b50fdcd609bf709875b54c34bf /sysconfig | |
parent | 8a5a8df51e533ac5e3155fb55f35beb61db92ccb (diff) | |
download | initscripts-ac5703b96f655a74f3b74c53f2e90b35d9d29823.tar initscripts-ac5703b96f655a74f3b74c53f2e90b35d9d29823.tar.gz initscripts-ac5703b96f655a74f3b74c53f2e90b35d9d29823.tar.bz2 initscripts-ac5703b96f655a74f3b74c53f2e90b35d9d29823.tar.xz initscripts-ac5703b96f655a74f3b74c53f2e90b35d9d29823.zip |
Handle 'arp_ip_target' bonding option correctly (#288151, modified from <agospoda@redhat.com>)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index ffbd2e3b..774f320c 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -125,7 +125,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 |