summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps')
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps b/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
new file mode 100644
index 000000000..f2412d7bc
--- /dev/null
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-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