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 4105fce9ec

View File

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