2018-03-03 19:40:35 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright 2018 Adrian Schmutzler
|
|
|
|
# License GPLv3
|
|
|
|
|
|
|
|
BOARD="$(uci get board.model.name)"
|
|
|
|
|
2019-11-19 15:06:26 +01:00
|
|
|
# antenna gain
|
|
|
|
case "$BOARD" in
|
|
|
|
tl-wr1043nd-v1)
|
|
|
|
uci set wireless.radio0.antenna_gain=3
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
ubnt-loco-m|\
|
|
|
|
ubnt-loco-m-xw)
|
|
|
|
uci set wireless.radio0.antenna_gain=9
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
ubnt-nano-m)
|
|
|
|
uci set wireless.radio0.antenna_gain=11
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
ubnt-pico-m)
|
|
|
|
uci set wireless.radio0.antenna_gain=12
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
ubnt-unifi)
|
|
|
|
# No support for Unifi AP Pro!
|
|
|
|
uci set wireless.radio0.antenna_gain=3
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
ubnt-unifiac-lite)
|
|
|
|
# These are the values for the AC MESH.
|
|
|
|
# The actual AC Lite has different values
|
|
|
|
uci set wireless.radio0.antenna_gain=4
|
|
|
|
uci set wireless.radio1.antenna_gain=3
|
|
|
|
uci commit wireless
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2020-01-08 18:23:19 +01:00
|
|
|
# rssileds: always disable if package is installed
|
|
|
|
[ -x "/etc/init.d/rssileds" ] && /etc/init.d/rssileds disable
|