From 55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Sun, 5 Apr 2015 15:43:15 +0200 Subject: ifup-aliases: don't return with error when arping fails --- sysconfig/network-scripts/ifup-aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index e66cb81d..2989b8d9 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -267,7 +267,8 @@ function new_interface () is_available ${parent_device} && \ ( grep -qswi "up" /sys/class/net/${parent_device}/operstate || grep -qswi "1" /sys/class/net/${parent_device}/carrier ) ; then echo $"Determining if ip address ${IPADDR} is already in use for device ${parent_device}..." - if ! /sbin/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR} ; then + /sbin/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR} + if [ $? = 1 ]; then net_log $"Error, some other host already uses address ${IPADDR}." return 1 fi -- cgit v1.2.1