aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-12-21 20:03:59 +0000
committerJohn Crispin <blogic@openwrt.org>2012-12-21 20:03:59 +0000
commit6a50405768e895615da878d9f09ca597a40fee17 (patch)
tree0feffb882d83ed7a60f58d0e463e83e82937a795 /target/linux/lantiq
parent9e6f0ec839912d8b00be52e5cadd2254083ea3ad (diff)
downloadmaster-187ad058-6a50405768e895615da878d9f09ca597a40fee17.tar.gz
master-187ad058-6a50405768e895615da878d9f09ca597a40fee17.tar.bz2
master-187ad058-6a50405768e895615da878d9f09ca597a40fee17.zip
[lantiq] adds script to set wps info on boards with a wps button
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34836 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq')
-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