diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/net-snmp/Makefile | 4 | ||||
-rw-r--r-- | package/net-snmp/files/snmpd.postinst | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/package/net-snmp/Makefile b/package/net-snmp/Makefile index 7352a3d07..96a78a1cf 100644 --- a/package/net-snmp/Makefile +++ b/package/net-snmp/Makefile @@ -40,8 +40,8 @@ SNMP_TRANSPORTS_EXCLUDED:= TCPIPv6 UDPIPv6 endif TLDFLAGS+= -pthread -CONFIGURE_ARGS+= --with-logfile=/var/log/snmpd.log \ - --with-persistent-directory=/usr/lib/snmp/ \ +CONFIGURE_ARGS+= --with-defaults \ + --with-persistent-directory=/etc/snmp \ --with-default-snmp-version=3 \ --with-sys-contact=root@localhost \ --with-sys-location=Unknown \ diff --git a/package/net-snmp/files/snmpd.postinst b/package/net-snmp/files/snmpd.postinst index 3f053bd5d..d6af32a4f 100644 --- a/package/net-snmp/files/snmpd.postinst +++ b/package/net-snmp/files/snmpd.postinst @@ -1,3 +1,4 @@ #!/bin/sh . $IPKG_INSTROOT/etc/functions.sh -add_rcconf 'e.g. "-Lf /dev/null -p /var/run/snmpd.pid"' snmpd_flags +add_rcconf snmpd +add_rcconf 'use "-Ls info" to log to syslog' snmpd_flags '-Ls info' |