forked from freifunk-franken/firmware
Fabian Bläse
5e7bdc0548
Memory consumption has increased enough with OpenWrt 21.02, that devices with 32 MB memory do not work reliably anymore. It might be possible to work around the 4 MB flash limitation, but reducing memory consumption is quite a bit harder. It is very likely that this is only possible with a signifcant reduction of feature. As we do not support any devices that have enough memory but only 4 MB of flash, drop support for devices with less than 8/64 MB alltogether. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed by: Robert Langhammer <rlanghammer@web.de>
29 lines
614 B
Plaintext
29 lines
614 B
Plaintext
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright 2018 Adrian Schmutzler
|
|
|
|
BOARD="$(uci get board.model.name)"
|
|
|
|
# antenna gain
|
|
case "$BOARD" in
|
|
ubnt,nanostation-loco-m-xw)
|
|
uci set wireless.radio0.antenna_gain=9
|
|
uci commit wireless
|
|
;;
|
|
ubnt,unifi)
|
|
# No support for Unifi AP Pro!
|
|
uci set wireless.radio0.antenna_gain=3
|
|
uci commit wireless
|
|
;;
|
|
ubnt,unifiac-mesh)
|
|
uci set wireless.radio0.antenna_gain=4
|
|
uci set wireless.radio1.antenna_gain=3
|
|
uci commit wireless
|
|
;;
|
|
esac
|
|
|
|
# rssileds: always disable if package is installed
|
|
[ -x "/etc/init.d/rssileds" ] && /etc/init.d/rssileds disable
|
|
|
|
exit 0
|