<ul>
<% for plugin, desc in pairs(plugins) do %>
<% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
- <li><a href="/cgi-bin/luci/admin/statistics/network/<%=plugin%>"><%=desc%></a></li>
+ <li><a href="<%=controller%>/admin/statistics/collectd/network/<%=plugin%>"><%=desc%></a></li>
<% end %>
<% end %>
</ul>
<ul>
<% for plugin, desc in pairs(plugins) do %>
<% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
- <li><a href="/cgi-bin/luci/admin/statistics/output/<%=plugin%>"><%=desc%></a></li>
+ <li><a href="<%=controller%>/admin/statistics/collectd/output/<%=plugin%>"><%=desc%></a></li>
<% end %>
<% end %>
</ul>
<ul>
<% for plugin, desc in pairs(plugins) do %>
<% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
- <li><a href="/cgi-bin/luci/admin/statistics/system/<%=plugin%>"><%=desc%></a></li>
+ <li><a href="<%=controller%>/admin/statistics/collectd/system/<%=plugin%>"><%=desc%></a></li>
<% end %>
<% end %>
</ul>
config internal themes
option OpenWRT "/luci-static/openwrt.org"
- option Fledermaus "/luci-static/fledermaus"
--- /dev/null
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-theme-fledermaus ) && rm -f /etc/uci-defaults/luci-theme-fledermaus
+}
--- /dev/null
+#!/bin/sh
+uci batch <<-EOF
+ set luci.themes.Fledermaus=/luci-static/fledermaus
+ commit luci
+EOF
+