mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Fixing bug checking netif_num
This commit is contained in:
parent
9b8e8489c3
commit
60ea4f677e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user