net-snmp: add distro extend using /etc/os-release

Read PRETTY_NAME from /etc/os-release via /bin/sh for distro output.

Bump PKG_RELEASE to account for the package configuration change.

Signed-off-by: Kamil Bienkiewicz <perceivalpercy@gmail.com>
This commit is contained in:
Kamil Bienkiewicz
2026-03-19 10:34:37 +01:00
committed by Florian Eckert
parent 24cd935ac8
commit 3892e96152
2 changed files with 6 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=net-snmp PKG_NAME:=net-snmp
PKG_VERSION:=5.9.4 PKG_VERSION:=5.9.4
PKG_RELEASE:=7 PKG_RELEASE:=9
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/net-snmp PKG_SOURCE_URL:=@SF/net-snmp

View File

@@ -93,6 +93,11 @@ config exec
option args /proc/sys/fs/file-nr option args /proc/sys/fs/file-nr
# option miboid 1.2.3.4 # option miboid 1.2.3.4
config extend
option name distro
option prog /bin/sh
option args "-c '. /etc/os-release; echo \"$PRETTY_NAME\"'"
config engineid config engineid
# option engineid 'LEDE' # option engineid 'LEDE'
option engineidtype '3' option engineidtype '3'