mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
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:
committed by
Florian Eckert
parent
24cd935ac8
commit
3892e96152
@@ -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
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user