mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 17:59:41 +02:00
[lantiq] adds script to set wps info on boards with a wps button
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34836 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
41afc96ae1
commit
41d3a10f48
16
target/linux/lantiq/base-files/etc/uci-defaults/wps
Normal file
16
target/linux/lantiq/base-files/etc/uci-defaults/wps
Normal 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
|
Loading…
Reference in New Issue
Block a user