mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #219 from fbelavenuto/bug-netif_num
Fixing bug checking netif_num
This commit is contained in:
commit
4105fce9ec
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user