Bump compat_version for upstream compatibility

Currently a OpenWrt patch is applied to retain an older-than-upstream
compat_version for mt7621 devices. Manually bump their version to ensure
upstream compatibility. Also, this allows us to drop the mentioned patch
for the next firmware version.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Fabian Bläse 2021-11-27 22:39:10 +01:00
parent 3d1db3414d
commit f6fe1ef747
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
BOARD="$(uci get board.model.name)"
# bump compat_version to be in sync with OpenWrt's compat_version.
# This is necessary, because our configuration currently does not require any
# manual migration. To prevent users from having to force-sysupgrade due to the
# bumped compat_version upstream, the previous compat_version is retained for
# a single release of our firmware and is bumped in this script afterwards.
case "$BOARD" in
ubnt,edgerouter-x|\
ubnt,edgerouter-x-sfp|\
netgear,r6220)
uci -q set "system.@system[-1].compat_version=1.1"
;;
esac