op-packages/luci-app-snmpd-ssl/root/etc/uci-defaults/snmpd-ssl
github-actions[bot] 263d407c11 🎄 Sync 2026-04-23 03:14:31
2026-04-23 03:14:31 +08:00

20 lines
350 B
Bash

#!/bin/sh
[ ! -f "/usr/share/ucitrack/luci-app-snmpd.json" ] && {
cat > /usr/share/ucitrack/luci-app-snmpd.json << EEOF
{
"config": "snmpd",
"init": "snmpd"
}
EEOF
}
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