summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mercer2025-04-30 18:46:51 +0000
committerRobert Marko2025-05-07 08:45:03 +0000
commite31738e83dcd687eb62d9539deeb6eec3389ab65 (patch)
tree9c4087be0cfa68e3de37e6832c31272137e8bd28
parentfa0f13076453854f23487205be1df92b3eec34a6 (diff)
downloadopenwrt-e31738e83dcd687eb62d9539deeb6eec3389ab65.tar.gz
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@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18656 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/qualcommax/ipq50xx/base-files/etc/board.d/03_set_oem_name21
1 files changed, 21 insertions, 0 deletions
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