diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-04-05 15:43:15 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-05-06 13:49:38 +0200 |
commit | eeb66ed251f81d16ec4d30f194af84c740e72c66 (patch) | |
tree | a5c84c2da5a3b0653a4ce66fbe1441602a487983 /sysconfig | |
parent | 39de27f81ed861da917155a0552bbf494b33e5ad (diff) | |
download | initscripts-eeb66ed251f81d16ec4d30f194af84c740e72c66.tar initscripts-eeb66ed251f81d16ec4d30f194af84c740e72c66.tar.gz initscripts-eeb66ed251f81d16ec4d30f194af84c740e72c66.tar.bz2 initscripts-eeb66ed251f81d16ec4d30f194af84c740e72c66.tar.xz initscripts-eeb66ed251f81d16ec4d30f194af84c740e72c66.zip |
ifup-aliases: don't return with error when arping fails
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index b821eee8..be44bcbf 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -261,7 +261,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 |