From 37c54313cdc16da566592c5e86b91f9a13009dda Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Mon, 8 Apr 2013 13:25:53 +0200 Subject: ifup-eth: ignore arping errors (#928379) --- sysconfig/network-scripts/ifup-eth | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1