diff options
author | Bill Nottingham <notting@redhat.com> | 2009-03-17 12:49:42 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-03-17 12:49:42 -0400 |
commit | a0895aba2529c34387cf9abdc658f5f43c39d32c (patch) | |
tree | 8202ee9e001384bbccde8c064eac651da4f3f5ce /sysconfig | |
parent | 1343d99f547745327264fa97558f194b3106c20f (diff) | |
download | initscripts-a0895aba2529c34387cf9abdc658f5f43c39d32c.tar initscripts-a0895aba2529c34387cf9abdc658f5f43c39d32c.tar.gz initscripts-a0895aba2529c34387cf9abdc658f5f43c39d32c.tar.bz2 initscripts-a0895aba2529c34387cf9abdc658f5f43c39d32c.tar.xz initscripts-a0895aba2529c34387cf9abdc658f5f43c39d32c.zip |
Remove arp_ip_target on ifdown for bonding devices. (#483711)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-eth | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index f5fb16f6..5d22ba69 100755 --- a/sysconfig/network-scripts/ifdown-eth +++ b/sysconfig/network-scripts/ifdown-eth @@ -57,7 +57,9 @@ if is_bonding_device ${DEVICE} ; then is_ignored_file "$device" && continue /sbin/ifdown ${device##*/} done - + for target in $(cat /sys/class/net/${DEVICE}/bonding/arp_ip_target) ; do + echo "-${target}" > /sys/class/net/${DEVICE}/bonding/arp_ip_target + done fi /etc/sysconfig/network-scripts/ifdown-ipv6 ${CONFIG} |