From e6d51db03db219a5546e3f39db9407316c69f7d9 Mon Sep 17 00:00:00 2001 From: xanoxes <31799613+xanoxes@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:35:41 +0800 Subject: [PATCH] codecheck fix Co-authored-by: Jan Macku --- network-scripts/ifup-eth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-scripts/ifup-eth b/network-scripts/ifup-eth index 134f9759..20c7f572 100755 --- a/network-scripts/ifup-eth +++ b/network-scripts/ifup-eth @@ -295,7 +295,7 @@ else if [ "${REALDEVICE}" != "lo" ] && ! is_false "${arpcheck[$idx]}"; then for (( tries=0; tries<${ARPING_TRIES:=1}; tries++ )); do ARPING=$(/sbin/arping -c 2 -w ${ARPING_WAIT:-3} -D -I ${REALDEVICE} ${ipaddr[$idx]}) - [ $? = 0 ] && break + [ "$?" -eq 0 ] && break ARPINGMAC=$(echo $ARPING | sed -ne 's/.*\[\(.*\)\].*/\1/p') if [ -n "${ARPINGMAC}" ]; then net_log $"Error, some other host ($ARPINGMAC) already uses address ${ipaddr[$idx]}."