1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Use uci-default to create vnstat backup crontab

This commit is contained in:
Ycarus 2018-10-31 12:40:09 +01:00
parent 1dbe57436b
commit 989092bc8c

View file

@ -22,5 +22,8 @@ if [ "$(uci -q get vnstat.@vnstat[-1].interface | grep wan1)" = "" ]; then
fi
fi
rm -f /tmp/luci-indexcache
if [ "$(grep -q vnstat_backup /etc/crontabs/root)" = "" ]; then
echo '* */12 * * * /etc/init.d/vnstat_backup backup' >> /etc/crontabs/root
fi
exit 0