[openwrt/openwrt] realtek: generate compat_version 2.0 for GS1900
LEDE Commits
lede-commits at lists.infradead.org
Tue Dec 24 02:17:58 PST 2024
svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a25809a474defedbd8f05d628d2c8525d79d549d
commit a25809a474defedbd8f05d628d2c8525d79d549d
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Tue Dec 24 09:56:11 2024 +0100
realtek: generate compat_version 2.0 for GS1900
The GS1900 images have been updated to have a larger firmware partition,
bumping the compatibility version to 2.0. However, since this version is
generated on first boot and the default was used, these images still
advertised 1.0 after a fresh install.
Add a new uci-defaults script that will generate the correct version for
all affected Zyxel GS1900 devices.
Fixes: 35acdbe9095d ("realtek: merge Zyxel GS1900 firmware partitions")
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
.../base-files/etc/board.d/05_compat-version | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/target/linux/realtek/base-files/etc/board.d/05_compat-version b/target/linux/realtek/base-files/etc/board.d/05_compat-version
new file mode 100644
index 0000000000..5c4ecb9aae
--- /dev/null
+++ b/target/linux/realtek/base-files/etc/board.d/05_compat-version
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2020 OpenWrt.org
+#
+
+. /lib/functions.sh
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+ zyxel,gs1900-8 | \
+ zyxel,gs1900-8hp-v1 | \
+ zyxel,gs1900-8hp-v2 | \
+ zyxel,gs1900-10hp | \
+ zyxel,gs1900-16 | \
+ zyxel,gs1900-24e | \
+ zyxel,gs1900-24ep | \
+ zyxel,gs1900-24hp-v1 | \
+ zyxel,gs1900-24hp-v2 | \
+ zyxel,gs1900-24-v1 | \
+ zyxel,gs1900-48)
+ ucidef_set_compat_version "2.0"
+ ;;
+esac
+
+board_config_flush
+
+exit 0
More information about the lede-commits
mailing list