summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-rwxr-xr-xapplications/luci-statistics/root/etc/init.d/luci_statistics15
1 files changed, 9 insertions, 6 deletions
diff --git a/applications/luci-statistics/root/etc/init.d/luci_statistics b/applications/luci-statistics/root/etc/init.d/luci_statistics
index e4da1d5b1a..21ed41eadb 100755
--- a/applications/luci-statistics/root/etc/init.d/luci_statistics
+++ b/applications/luci-statistics/root/etc/init.d/luci_statistics
@@ -18,14 +18,17 @@ start() {
ln -s ${imagepath:-/tmp/rrdimg}/ /www/rrdimg
fi
- ### flush LuCI index cache
- test -f /var/luci-indexcache && rm /var/luci-indexcache
+ ### flush LuCI index cache
+ test -f /var/luci-indexcache && rm /var/luci-indexcache
+
+ ### workaround broken permissions on /tmp
+ chmod 1777 /tmp
}
restart() {
- ### regenerate config / prepare environment
- start
+ ### regenerate config / prepare environment
+ start
- ### restart collectd
- /etc/init.d/collectd restart
+ ### restart collectd
+ /etc/init.d/collectd restart
}