From ae970828a1b1637c8d956f6bacdb3d25d549468e Mon Sep 17 00:00:00 2001 From: Christian Dresel Date: Sat, 16 Apr 2022 10:37:52 +0200 Subject: [PATCH] fff-web-ui: Only show batman-adv data if batctl exists To prevent the follow error in logread at layer 3 firmware: uhttpd[1700]: /bin/sh: batctl: not found remove batctl from webui if no batctl exist Signed-off-by: Christian Dresel --- .../fff/fff-web-ui/files/www/public/cgi-bin/status.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packages/fff/fff-web-ui/files/www/public/cgi-bin/status.html b/src/packages/fff/fff-web-ui/files/www/public/cgi-bin/status.html index aed86b5c..2ae818d8 100755 --- a/src/packages/fff/fff-web-ui/files/www/public/cgi-bin/status.html +++ b/src/packages/fff/fff-web-ui/files/www/public/cgi-bin/status.html @@ -57,6 +57,7 @@ contact="$(uci -q get "fff.system.contact")" + <% if [ -f "$(command -v batctl)" ] ; then %>
Status @@ -66,6 +67,7 @@ contact="$(uci -q get "fff.system.contact")"
Lokale Clients:<% echo -n $(batctl tl -H 2> /dev/null | grep -c 'W') %>
+ <% fi %>