aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-04-05 15:43:15 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-04-05 15:43:15 +0200
commit55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368 (patch)
tree9735f22ee51bec717bb047b92daedc66129768b9 /sysconfig/network-scripts/ifup-aliases
parent8447253e512d98316c5ab9cbcfe335720163349b (diff)
downloadinitscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar
initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar.gz
initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar.bz2
initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar.xz
initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.zip
ifup-aliases: don't return with error when arping fails
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases3
1 files changed, 2 insertions, 1 deletions
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