Browse Source

Merge pull request #9451 from alinnastac/snmp-firewall-reload

net-snmp: reload firewall only when needed
lilik-openwrt-22.03
Stijn Tintel 5 years ago
committed by GitHub
parent
commit
665ec53cd8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      net/net-snmp/files/snmpd.init

+ 3
- 1
net/net-snmp/files/snmpd.init View File

@ -337,7 +337,8 @@ start_service() {
} }
stop_service() { stop_service() {
[ -f "$CONFIGFILE" ] && rm -f "$CONFIGFILE"
[ -f "$CONFIGFILE" ] || return
rm -f "$CONFIGFILE"
procd_set_config_changed firewall procd_set_config_changed firewall
} }
@ -353,5 +354,6 @@ service_triggers(){
} }
service_started() { service_started() {
[ "$snmp_enabled" -eq 0 ] && return
procd_set_config_changed firewall procd_set_config_changed firewall
} }

Loading…
Cancel
Save