diff --git a/configs/rpi-4-files/usr/bin/luci-stats-reset b/configs/rpi-4-files/usr/bin/luci-stats-reset new file mode 100755 index 0000000..381302b --- /dev/null +++ b/configs/rpi-4-files/usr/bin/luci-stats-reset @@ -0,0 +1,11 @@ +#!/bin/sh +# Delete ALL collected statistics and restart luci-statistics and collectd +# Useful after changing RRD config values of /etc/config/luci_statistics + +/etc/init.d/luci_statistics stop +/etc/init.d/collectd stop + +rm -rf /tmp/collectd.conf /tmp/rrd/* + +/etc/init.d/collectd start +/etc/init.d/luci_statistics start