diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-06-10 15:35:25 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-06-10 15:35:25 +0200 |
commit | 38ad140ec8bc1781b6b64a156f434bea8cea41a1 (patch) | |
tree | e732fc98f14e769ca0175d4a91fc459598cb7aa4 /sysconfig | |
parent | e7898a3c25c96f2e05bdf6a6170947a9bb67c787 (diff) | |
download | initscripts-38ad140ec8bc1781b6b64a156f434bea8cea41a1.tar initscripts-38ad140ec8bc1781b6b64a156f434bea8cea41a1.tar.gz initscripts-38ad140ec8bc1781b6b64a156f434bea8cea41a1.tar.bz2 initscripts-38ad140ec8bc1781b6b64a156f434bea8cea41a1.tar.xz initscripts-38ad140ec8bc1781b6b64a156f434bea8cea41a1.zip |
ifup-aliases: arpcheck - check for parent operstate and carrier
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 349b4f5b..45208758 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -260,8 +260,8 @@ function new_interface () if [ "$setup_this" = "yes" ] ; then if [ "${parent_device}" != "lo" ] && [ "${ARPCHECK}" != "no" ] && \ is_available ${parent_device} && \ - grep -qswi "up" /sys/class/net/${parent_device}/operstate ; then - echo $"Determining if ip address ${IPADDR} is already in use for device ${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 net_log $"Error, some other host already uses address ${IPADDR}." return 1 |