mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Simplify SNMPd interface
This commit is contained in:
parent
b0894b2d46
commit
374ccdb80a
5 changed files with 618 additions and 42 deletions
|
@ -7,4 +7,13 @@ if [ "$(uci -q get snmpd.general.network)" = "" ]; then
|
|||
commit snmpd
|
||||
EOF
|
||||
fi
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@snmpd[-1]
|
||||
add ucitrack snmpd
|
||||
set ucitrack.@snmpd[-1].init=snmpd
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue