contrib/meshwizard: Up the wlan interface before checking for VAP capabilities
authorManuel Munz <freifunk@somakoma.de>
Sun, 13 Jan 2013 08:35:18 +0000 (08:35 +0000)
committerManuel Munz <freifunk@somakoma.de>
Sun, 13 Jan 2013 08:35:18 +0000 (08:35 +0000)
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh

index 9d1bce3..34bd0cb 100755 (executable)
@@ -81,6 +81,10 @@ uci_commitverbose "Setup wifi interface for $netrenamed" wireless
 ip4addr="$(uci get meshwizard.netconfig.$net\_ip4addr)"
 
 # check if this hardware supports VAPs
+# the interface needs to be up before the check can happen
+
+/sbin/wifi
+
 supports_vap="0"
 $dir/helpers/supports_vap.sh $net $type && supports_vap=1