adds script to set wps info on boards with a wps button
authorJohn Crispin <john@openwrt.org>
Fri, 21 Dec 2012 20:03:59 +0000 (20:03 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 21 Dec 2012 20:03:59 +0000 (20:03 +0000)
SVN-Revision: 34836

target/linux/lantiq/base-files/etc/uci-defaults/wps [new file with mode: 0644]

diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/wps b/target/linux/lantiq/base-files/etc/uci-defaults/wps
new file mode 100644 (file)
index 0000000..f2412d7
--- /dev/null
@@ -0,0 +1,16 @@
+. /lib/functions.sh
+. /lib/functions/lantiq.sh
+
+set_wps() {
+       uci set wireless.$1.wps_pushbutton=0
+       uci set wireless.$1.wps_device_name="OpenWrt - $(lantiq_board_name)"
+}
+
+board=$(lantiq_board_id)
+case $board in
+WBMR)
+       config_load wireless
+       config_foreach set_wps wifi-iface
+       uci commit wireless
+       ;;
+esac