applications/luci-vnstat: add postinstall
This commit is contained in:
parent
093f677a30
commit
483826c994
1 changed files with 7 additions and 0 deletions
7
applications/luci-vnstat/ipkg/postinst
Executable file
7
applications/luci-vnstat/ipkg/postinst
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-vnstat ) && rm -f /etc/uci-defaults/luci-vnstat
|
||||
/etc/init.d/vnstat enabled || /etc/init.d/vnstat enable
|
||||
exit 0
|
||||
}
|
Loading…
Reference in a new issue