contrib/meshwizard: add madwifi iface options if needed
authorsoma <freifunk@somakoma.de>
Wed, 25 Feb 2015 19:00:33 +0000 (20:00 +0100)
committersoma <freifunk@somakoma.de>
Wed, 25 Feb 2015 19:00:33 +0000 (20:00 +0100)
contrib/package/meshwizard/Makefile
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh

index 45d5f2162340457bdfbe0cd1e155a65b245dc4c6..9d74fe54795e24d33d51d009857102ff204daa00 100644 (file)
@@ -4,7 +4,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=meshwizard
-PKG_RELEASE:=0.1.0
+PKG_RELEASE:=0.1.1
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
index 707b7b72cd800c79ccbd003dcefbd684ece0e904..41feb8665106b8815264458620ddb5196c3bf6b1 100755 (executable)
@@ -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)"