adds script to set wps info on boards with a wps button

SVN-Revision: 34836
This commit is contained in:
John Crispin 2012-12-21 20:03:59 +00:00
parent 3134205dfd
commit 9818a1f00b

View File

@ -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