|
|
@ -272,10 +272,13 @@ snmpd_setup_fw_rules() { |
|
|
|
start_service() { |
|
|
|
[ -f "$CONFIGFILE" ] && rm -f "$CONFIGFILE" |
|
|
|
|
|
|
|
procd_open_instance |
|
|
|
|
|
|
|
config_load snmpd |
|
|
|
|
|
|
|
config_get_bool snmp_enabled general enabled 1 |
|
|
|
[ "$snmp_enabled" -eq 0 ] && return |
|
|
|
|
|
|
|
procd_open_instance |
|
|
|
|
|
|
|
config_foreach snmpd_agent_add agent |
|
|
|
config_foreach snmpd_agentx_add agentx |
|
|
|
config_foreach snmpd_system_add system |
|
|
|