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