summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard/files/usr
diff options
context:
space:
mode:
authorsoma <freifunk@somakoma.de>2015-02-25 20:00:33 +0100
committersoma <freifunk@somakoma.de>2015-02-25 20:00:33 +0100
commit63976f603a4c947f135ae82bc7d36410ec61a50f (patch)
tree42676f6bdc5c50e8b28481812aca0aee49585ba6 /contrib/package/meshwizard/files/usr
parent7cfa62a2546e8ef8bddfbf451fe203c5d4830f09 (diff)
contrib/meshwizard: add madwifi iface options if needed
Diffstat (limited to 'contrib/package/meshwizard/files/usr')
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh
index 707b7b72c..41feb8665 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh
@@ -59,6 +59,11 @@ uci set wireless.$net\_iface=wifi-iface
# create new wifi-iface for $net from defaults
set_defaults "wifi_iface_" wireless.$net\_iface
+# overwrite some settings for type atheros (madwifi)
+if [ "$type" = "atheros" ]; then
+ set_defaults "madwifi_wifi_iface_" wireless.${net}
+fi
+
# overwrite defaults
bssid="$($dir/helpers/gen_bssid.sh $channel $community)"