aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-12-21 20:03:59 +0000
committerJohn Crispin <john@openwrt.org>2012-12-21 20:03:59 +0000
commit9818a1f00ba94f543700e6c40709b2338301a7e1 (patch)
tree53565b0ea3d9a55cb08ba4e96325593f435cb4cc /target/linux/lantiq/base-files
parent3134205dfd681771d63b66967251095f68086382 (diff)
downloadupstream-9818a1f00ba94f543700e6c40709b2338301a7e1.tar.gz
upstream-9818a1f00ba94f543700e6c40709b2338301a7e1.tar.bz2
upstream-9818a1f00ba94f543700e6c40709b2338301a7e1.zip
adds script to set wps info on boards with a wps button
SVN-Revision: 34836
Diffstat (limited to 'target/linux/lantiq/base-files')
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/wps16
1 files changed, 16 insertions, 0 deletions
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
index 0000000000..f2412d7bc2
--- /dev/null
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/wps
@@ -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