summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
blob: e75fb8493fd6a98d034e9227560f6c3d65bee3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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_model)"
}

board=$(lantiq_board_name)
case $board in
WBMR)
	config_load wireless
	config_foreach set_wps wifi-iface
	uci commit wireless
	;;
esac