* themes/fledermaus: Register on install

* applications/luci-statistics: Fixed wrong paths in templates
This commit is contained in:
Steven Barth 2008-06-09 08:48:10 +00:00
parent 64806f32be
commit 2bf012a40a
6 changed files with 13 additions and 4 deletions

View file

@ -9,7 +9,7 @@ about open tcp connections, interface traffic, iptables rules etc.%></p>
<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>

View file

@ -10,7 +10,7 @@ and to transmit the data over the network to other collectd instances.%></p>
<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>

View file

@ -6,7 +6,7 @@
<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>

View file

@ -41,4 +41,3 @@ config internal template
config internal themes
option OpenWRT "/luci-static/openwrt.org"
option Fledermaus "/luci-static/fledermaus"

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-theme-fledermaus ) && rm -f /etc/uci-defaults/luci-theme-fledermaus
}

View file

@ -0,0 +1,6 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.Fledermaus=/luci-static/fledermaus
commit luci
EOF