Browse Source

net-snmp: avoid duplicate section names

It seems that UCI can't handle duplicate section names in a single
config file, even if they use different types. After the previous
commit, running `uci export` results in the following error:

uci: Parse error (section of different type overwrites prior section with same name) at line 17, byte 23

Append a 6 to the com2sec6 section names to solve this.

Fixes: 0e1c8b4ccc ("net-snmp: snmpd: listen on IPv6 by default")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
lilik-openwrt-22.03
Stijn Tintel 7 years ago
parent
commit
e4165b4452
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      net/net-snmp/Makefile
  2. +2
    -2
      net/net-snmp/files/snmpd.conf

+ 1
- 1
net/net-snmp/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=net-snmp PKG_NAME:=net-snmp
PKG_VERSION:=5.7.3 PKG_VERSION:=5.7.3
PKG_RELEASE:=8
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


+ 2
- 2
net/net-snmp/files/snmpd.conf View File

@ -14,12 +14,12 @@ config com2sec private
option source localhost option source localhost
option community private option community private
config com2sec6 public
config com2sec6 public6
option secname ro option secname ro
option source default option source default
option community public option community public
config com2sec6 private
config com2sec6 private6
option secname rw option secname rw
option source localhost option source localhost
option community private option community private


Loading…
Cancel
Save