diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-04-08 13:25:53 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-04-08 13:25:53 +0200 |
commit | 37c54313cdc16da566592c5e86b91f9a13009dda (patch) | |
tree | 5423ab148261a5a5d665919bff637611a66a148e /sysconfig/network-scripts | |
parent | 148b75753d124d5d02e37549df66536e0cb4e05c (diff) | |
download | initscripts-37c54313cdc16da566592c5e86b91f9a13009dda.tar initscripts-37c54313cdc16da566592c5e86b91f9a13009dda.tar.gz initscripts-37c54313cdc16da566592c5e86b91f9a13009dda.tar.bz2 initscripts-37c54313cdc16da566592c5e86b91f9a13009dda.tar.xz initscripts-37c54313cdc16da566592c5e86b91f9a13009dda.zip |
ifup-eth: ignore arping errors (#928379)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 1c3b6a31..50e0a37a 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -221,7 +221,8 @@ else if ! LC_ALL=C ip addr ls ${REALDEVICE} | LC_ALL=C grep -q "${ipaddr[$idx]}/${prefix[$idx]}" ; then [ "${REALDEVICE}" != "lo" ] && [ "${arpcheck[$idx]}" != "no" ] && \ - if ! /sbin/arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${ipaddr[$idx]} ; then + /sbin/arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${ipaddr[$idx]} + if [ $? = 1 ]; then net_log $"Error, some other host already uses address ${ipaddr[$idx]}." exit 1 fi |