Merge pull request #219 from fbelavenuto/bug-netif_num

Fixing bug checking netif_num
This commit is contained in:
Fabio Belavenuto 2022-10-04 14:31:07 -03:00 committed by GitHub
commit 2fb04769ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ fi
# Validate netif_num
NETIF_NUM=${CMDLINE["netif_num"]}
MACS=0
for N in `seq 1 4`; do
for N in `seq 1 9`; do
[ -n "${CMDLINE["mac${N}"]}" ] && MACS=$((${MACS}+1))
done
if [ ${NETIF_NUM} -ne ${MACS} ]; then