mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix interface and default snmpd settings
This commit is contained in:
		
							parent
							
								
									b187761bbf
								
							
						
					
					
						commit
						c4d1ea87b7
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -117,7 +117,7 @@ s.addremove = false
 | 
			
		|||
s.anonymous = true
 | 
			
		||||
 | 
			
		||||
engineid = s:option(Value, "engineid", translate("engineid"))
 | 
			
		||||
engineidtype = s:options(ListValue, "engineidtype", translate("engineidtype"))
 | 
			
		||||
engineidtype = s:option(ListValue, "engineidtype", translate("engineidtype"))
 | 
			
		||||
engineidtype:value("1",translate("IPv4"))
 | 
			
		||||
engineidtype:value("2",translate("IPv6"))
 | 
			
		||||
engineidtype:value("3",translate("MAC"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,8 @@
 | 
			
		|||
if [ "$(uci -q get snmpd.general.network)" = "" ]; then
 | 
			
		||||
	uci -q batch <<-EOF >/dev/null
 | 
			
		||||
		add_list snmpd.general.network=lan
 | 
			
		||||
		set snmpd.system.sysName="OpenMPTCProuter"
 | 
			
		||||
		set snmpd.@system[0].sysName="OpenMPTCProuter"
 | 
			
		||||
		set snmpd.general.enabled=0"
 | 
			
		||||
	EOF
 | 
			
		||||
fi
 | 
			
		||||
exit 0
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue