contrib/package: make luci-app-statistics depend on a few collectd plugins
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 16 Feb 2009 17:43:43 +0000 (17:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 16 Feb 2009 17:43:43 +0000 (17:43 +0000)
applications/luci-statistics: implement a workaround for broken permissions on /tmp

applications/luci-statistics/root/etc/init.d/luci_statistics
contrib/package/luci/Makefile

index e4da1d5b1ace9aa1ff9cde377f00aac85333bf57..21ed41eadb01f5f85607681a35d3e30da26e7ec4 100755 (executable)
@@ -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
 }
index 12aca229ca74bbe98f6818fae1801db743d73f4e..cebbf99c16d29e69c790ce33490863b64f46dea6 100644 (file)
@@ -415,7 +415,11 @@ endef
 define Package/luci-app-statistics
   $(call Package/luci/webtemplate)
   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
-   +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 +PACKAGE_luci-app-statistics:rrdtool1
+   +PACKAGE_luci-app-statistics:rrdtool1 \
+   +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
+   +PACKAGE_luci-app-statistics:collectd-mod-wireless \
+   +PACKAGE_luci-app-statistics:collectd-mod-interfaces \
+   +PACKAGE_luci-app-statistics:collectd-mod-load
   TITLE:=LuCI Statistics Application
 endef