forked from freifunk-franken/firmware
fff-web-ui: Add Routing row and move batman-adv information
To show more different routing protocols make a new row for routing Batman-adv is the routingprotocol on the node variant and should only show if batctl is installed and move it to the routing row Signed-off-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
parent
9d82530dbe
commit
7c04935465
|
@ -59,8 +59,6 @@ fi
|
|||
<tr><th>Name:</th><td><%= ${HOSTNAME} %></td></tr>
|
||||
<tr><th>Modell:</th><td><% cat /tmp/sysinfo/model 2>/dev/null %></td></tr>
|
||||
<tr><th>MAC-Adresse:</th><td><%= $(cat /sys/class/net/br-client/address) %></td></tr>
|
||||
<tr><th>Bekannte Knoten:</th><td><%= $(($(batctl tg -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null)+1)) %></td></tr>
|
||||
<tr><th>Nachbarknoten:</th><td><%= $(batctl o -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null) %></td></tr>
|
||||
<tr><th>Laufzeit:</th><td><%= ${uptime} %></td></tr>
|
||||
<tr><th>Auslastung:</th><td><%= ${load} %></td></tr>
|
||||
<tr><th>Uhrzeit:</th><td><% date %></td></tr>
|
||||
|
@ -91,6 +89,15 @@ fi
|
|||
<% fi %>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset style="padding-bottom:12px">
|
||||
<legend>Routing</legend>
|
||||
<table>
|
||||
<% if [ -f "$(command -v batctl)" ] ; then %>
|
||||
<tr><th>Bekannte Knoten:</th><td><%= $(($(batctl tg -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null)+1)) %></td></tr>
|
||||
<tr><th>Nachbarknoten:</th><td><%= $(batctl o -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null) %></td></tr>
|
||||
<% fi %>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset style="padding-bottom:12px">
|
||||
<legend>Netz: Freifunk</legend>
|
||||
<table>
|
||||
|
|
Loading…
Reference in New Issue