03_wireless-wps 307 B

12345678910111213141516
  1. . /lib/functions.sh
  2. . /lib/functions/lantiq.sh
  3. set_wps() {
  4. uci set wireless.$1.wps_pushbutton=0
  5. uci set wireless.$1.wps_device_name="OpenWrt - $(lantiq_board_model)"
  6. }
  7. board=$(lantiq_board_name)
  8. case $board in
  9. WBMR)
  10. config_load wireless
  11. config_foreach set_wps wifi-iface
  12. uci commit wireless
  13. ;;
  14. esac