fff-web-ui: Show Babel in Software

Show which babel Version and program is enabled on the router in the webui

Signed-off-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
Christian Dresel 2022-04-30 12:42:17 +02:00
parent 264645950b
commit 0adfa6a155
1 changed files with 8 additions and 1 deletions

View File

@ -113,7 +113,14 @@ fi
<% fi
if [ -f "$(command -v fastd)" ] ; then %>
<tr><th>Fastd Version:</th><td><% fastd --version 2> /dev/null | cut -d' ' -f 2 %></td></tr>
<% fi %>
<% fi
if [ -e /lib/functions/fff/babel ]; then
. /lib/functions/fff/babel
babel_version=$(babel_get_version)
if [ $? -eq 0 ]; then
echo "<tr><th>Aktivierte Babel Version</th><td>"$babel_version"</td></tr>"
fi
fi %>
</table>
</fieldset>
<form method="post">