contrib/meshwizard: Fix detection if VAP is supported in interfaces firewall setup
This commit is contained in:
parent
663be04c44
commit
73b0c8a5f2
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ network=$(echo $network) # Removes leading and trailing whitespaces
|
|||
|
||||
[ -n "$netrenamed" ] && [ -z "$(echo $network | grep $netrenamed)" ] && network="$network $netrenamed"
|
||||
|
||||
if [ "$type" == "atheros" -a "$vap" == 1 ]; then
|
||||
# check if this hardware supports VAPs
|
||||
supports_vap="0"
|
||||
$dir/helpers/supports_vap.sh $net $type && supports_vap=1
|
||||
|
||||
if [ "$supports_vap" == "1" -a "$vap" == 1 ]; then
|
||||
[ -n "$netrenamed" ] && [ "$network" == "${network/${netrenamed}dhcp/}" ] && network="$network ${netrenamed}dhcp"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue