Fixing bug checking netif_num

This commit is contained in:
Fabio Belavenuto 2022-10-04 14:30:52 -03:00
parent 9b8e8489c3
commit 60ea4f677e

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