* themes/fledermaus: Register on install
* applications/luci-statistics: Fixed wrong paths in templates
This commit is contained in:
parent
64806f32be
commit
2bf012a40a
6 changed files with 13 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -41,4 +41,3 @@ config internal template
|
|||
|
||||
config internal themes
|
||||
option OpenWRT "/luci-static/openwrt.org"
|
||||
option Fledermaus "/luci-static/fledermaus"
|
||||
|
|
4
themes/fledermaus/ipkg/postinst
Executable file
4
themes/fledermaus/ipkg/postinst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-theme-fledermaus ) && rm -f /etc/uci-defaults/luci-theme-fledermaus
|
||||
}
|
6
themes/fledermaus/root/etc/uci-defaults/luci-theme-fledermaus
Executable file
6
themes/fledermaus/root/etc/uci-defaults/luci-theme-fledermaus
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Fledermaus=/luci-static/fledermaus
|
||||
commit luci
|
||||
EOF
|
||||
|
Loading…
Reference in a new issue