diff --git a/luci-app-snmpd/Makefile b/luci-app-snmpd/Makefile index d9c583019..12f22abd3 100644 --- a/luci-app-snmpd/Makefile +++ b/luci-app-snmpd/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=LuCI SNMPD Interface -LUCI_DEPENDS:=+snmpd +LUCI_DEPENDS:=+snmpd +snmptrapd +snmp-utils +snmp-mibs PKG_LICENSE:=GPLv3 diff --git a/luci-app-snmpd/root/etc/init.d/snmpd b/luci-app-snmpd/root/etc/init.d/snmpd index 238a0f34d..39fc71445 100755 --- a/luci-app-snmpd/root/etc/init.d/snmpd +++ b/luci-app-snmpd/root/etc/init.d/snmpd @@ -344,5 +344,6 @@ service_triggers(){ } service_started() { + [ "$snmp_enabled" -eq 0 ] && return procd_set_config_changed firewall }