ieee1905: populate device information based on OpenWrt properties

This follows how Device.DeviceInfo. is populated.
This commit is contained in:
Erik Karlsson 2025-04-24 15:35:54 +02:00
parent 476aee97a6
commit e7e5ede6b9
2 changed files with 14 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ieee1905
PKG_VERSION:=8.7.6
PKG_VERSION:=8.7.7
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)

View file

@ -0,0 +1,13 @@
#!/bin/sh
. /etc/os-release
set_val() {
uci -q get "$1" > /dev/null || uci set "${1}=${2:-${3}}"
}
set_val ieee1905.ieee1905.manufacturer "$OPENWRT_DEVICE_MANUFACTURER" IOPSYS
set_val ieee1905.ieee1905.model_name "$(cat /tmp/sysinfo/model)" 1905-SampleDev
set_val ieee1905.ieee1905.device_name "$NAME" 1905Device
exit 0