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>
This commit is contained in:
parent
fa0f130764
commit
e31738e83d
1 changed files with 21 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue