[openwrt/openwrt] qualcommax: ipq50xx: gl-b3000: add 03_set_oem_name
LEDE Commits
lede-commits at lists.infradead.org
Wed May 7 01:45:08 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e31738e83dcd687eb62d9539deeb6eec3389ab65
commit e31738e83dcd687eb62d9539deeb6eec3389ab65
Author: Scott Mercer <TheRootEd24 at gmail.com>
AuthorDate: Wed Apr 30 14:46:51 2025 -0400
qualcommax: ipq50xx: gl-b3000: add 03_set_oem_name
This additional board.d script creates the "/tmp/sysinfo/oem_name" file
and populates it with the proper OEM "supported_devices" metadata entry
to be used by the new fwtool.sh oem detection feature.
(#18554): add oem image dectection to fwtool.sh
Signed-off-by: Scott Mercer <TheRootEd24 at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18656
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../ipq50xx/base-files/etc/board.d/03_set_oem_name | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/target/linux/qualcommax/ipq50xx/base-files/etc/board.d/03_set_oem_name b/target/linux/qualcommax/ipq50xx/base-files/etc/board.d/03_set_oem_name
new file mode 100644
index 0000000000..350ff1bec0
--- /dev/null
+++ b/target/linux/qualcommax/ipq50xx/base-files/etc/board.d/03_set_oem_name
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+. /lib/functions/uci-defaults.sh
+. /lib/functions/system.sh
+
+ipq50xx_set_oem_name()
+{
+ local board="$1"
+ case $board in
+ glinet,gl-b3000)
+ oem_name=${board#*-}
+ echo "$oem_name" > "$oem_file"
+ ;;
+ esac
+}
+
+oem_file=/tmp/sysinfo/oem_name
+board=$(board_name)
+ipq50xx_set_oem_name $board
+
+exit 0
More information about the lede-commits
mailing list