mediatek: set new compat version if booted on R64 and R3
authorDaniel Golle <daniel@makrotopia.org>
Tue, 6 Jun 2023 00:14:27 +0000 (01:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 9 Jun 2023 18:23:03 +0000 (19:23 +0100)
commit49bd38f01ac6927cda2dc894417994d1256673a7
tree4833cefd0783c2c37c4a3a44b18e397b725d549f
parenta65ec9fea7c9bf0ed2c247e37448f4189b01adf2
mediatek: set new compat version if booted on R64 and R3

If the board comes up with OpenWrt that means that the bootloader is
recent enough and knows about the new device tree overlays.

Using /etc/board.d/ is not enough in this case because it doesn't
overwrite existing configuration which may exist (and is fine to exist)
if the user updated with 'sysupgrade -F *.itb' and has kept
configuration. They would still need to manually set compat_version
even though the fact that the bootloader env has been updated can be
implied by the fact that the system has started.

Hence we can always set compat_version=1.1 for those two boards using
uci-defaults.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 25e27c4af3f1de872aadbaada434437cba3b0a75)
target/linux/mediatek/filogic/base-files/etc/uci-defaults/05_fix-compat-version [new file with mode: 0644]
target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version [new file with mode: 0644]