summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/vnstat/files/vnstat.cron')
-rw-r--r--net-analyzer/vnstat/files/vnstat.cron8
1 files changed, 8 insertions, 0 deletions
diff --git a/net-analyzer/vnstat/files/vnstat.cron b/net-analyzer/vnstat/files/vnstat.cron
new file mode 100644
index 000000000000..716405fe50c8
--- /dev/null
+++ b/net-analyzer/vnstat/files/vnstat.cron
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# uncomment this line to enable this cron script
+exit 0
+
+if [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ] ; then
+ exec /usr/bin/vnstat -u
+fi