net-snmp: set hostname as sysname
authorChristian Korber <ckorber@tdt.de>
Thu, 25 Jul 2024 09:28:51 +0000 (11:28 +0200)
committerChristian Korber <ckorber@tdt.de>
Fri, 26 Jul 2024 11:07:50 +0000 (13:07 +0200)
commit0b12bee66a89a3e53d91709aec0e5400e2387953
treef858126b954eb4cecbc6c38ab1ceb3ef580dc309
parent8d68f0b0dbb0d3f3929144507e28a449c67ea3ca
net-snmp: set hostname as sysname

This commit writes the option hostname obtained via uci_get
system.@system[0].hostname to the snmpd.conf file if sysName
is not defined in /etc/config/snmpd.

Signed-off-by: Christian Korber <ckorber@tdt.de>
net/net-snmp/Makefile
net/net-snmp/files/snmpd.init