2012-12-21 20:03:59 +00:00
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/functions/lantiq.sh
|
|
|
|
|
|
|
|
set_wps() {
|
|
|
|
uci set wireless.$1.wps_pushbutton=0
|
2014-07-02 16:33:11 +00:00
|
|
|
uci set wireless.$1.wps_device_name="OpenWrt - $(lantiq_board_model)"
|
2012-12-21 20:03:59 +00:00
|
|
|
}
|
|
|
|
|
2014-07-02 16:33:11 +00:00
|
|
|
board=$(lantiq_board_name)
|
2012-12-21 20:03:59 +00:00
|
|
|
case $board in
|
|
|
|
WBMR)
|
|
|
|
config_load wireless
|
|
|
|
config_foreach set_wps wifi-iface
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
esac
|