1
0
Fork 0
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:
Ycarus 2018-11-27 15:16:42 +01:00
parent b0894b2d46
commit 374ccdb80a
5 changed files with 618 additions and 42 deletions

View file

@ -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