applications/luci-vnstat: add uci-defaults script
This commit is contained in:
parent
180dbe580b
commit
ba949a84f6
1 changed files with 11 additions and 0 deletions
11
applications/luci-vnstat/root/etc/uci-defaults/luci-vnstat
Executable file
11
applications/luci-vnstat/root/etc/uci-defaults/luci-vnstat
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@vnstat[-1]
|
||||
add ucitrack vnstat
|
||||
set ucitrack.@vnstat[-1].init=vnstat
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
Loading…
Reference in a new issue