diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
commit | 3a2cccda2eb45c6b55ef33c73a4af2c88935f383 (patch) | |
tree | 42f8f7a8c928a04176ec598da4684b0d778e216d /target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps | |
parent | 0de21d9747688e37cc9a9fb92c41abcdde9ef09f (diff) | |
download | mtk-20170518-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.zip mtk-20170518-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.gz mtk-20170518-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.bz2 |
all targets: use numerically prefixed uci-defaults file names to better control order of execution
SVN-Revision: 35217
Diffstat (limited to 'target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps')
-rw-r--r-- | target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps b/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps new file mode 100644 index 0000000..f2412d7 --- /dev/null +++ b/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps @@ -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 |