statistics: remove references to Lucid from scripts
[project/luci.git] / applications / luci-app-statistics / root / etc / init.d / luci_statistics
index 936f3a6..ab75b69 100755 (executable)
@@ -3,23 +3,15 @@ START=79
 
 start() {
        ### replace shipped config with symlink
+       mkdir -p /var/etc
        if [ ! -L /etc/collectd.conf ]; then
                test -f /etc/collectd.conf && mv /etc/collectd.conf /etc/collectd.conf.bak
                ln -s /var/etc/collectd.conf /etc/collectd.conf
        fi
 
        ### create config
-       mkdir -p /var/etc
        /usr/bin/stat-genconfig > /var/etc/collectd.conf
 
-       ### prepare rrdimg directory
-       if [ -f /etc/config/lucid ] && [ -x /etc/init.d/lucid ] && /etc/init.d/lucid enabled && \
-          [ "$(uci get luci_statistics.rrdtool.image_path 2>/dev/null)" != "$(uci get lucid.statistics.physical 2>/dev/null)" ]; then
-               uci set lucid.statistics.physical=$(uci get luci_statistics.rrdtool.image_path)
-               uci commit lucid
-               /etc/init.d/lucid restart
-       fi
-
        ### workaround broken permissions on /tmp
        chmod 1777 /tmp
 }