From patchwork Sat Jan 4 17:39:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fff-webui: show fast public key in webui From: Christian Dresel X-Patchwork-Id: 1252 Message-Id: <20200104173919.9567-1-fff@chrisi01.de> To: franken-dev@freifunk.net Date: Sat, 4 Jan 2020 18:39:19 +0100 User can see the fastd public key in the webui Signed-off-by: Christian Dresel --- src/packages/fff/fff-web/files/www/ssl/cgi-bin/home.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/home.html b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/home.html index f18a3b4..67345fa 100755 --- a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/home.html +++ b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/home.html @@ -46,6 +46,8 @@ else internet_active="Nein" fi +fastd_pub=$(echo "secret \"$(uci get fastd.fff.secret)\";" > /tmp/sec && fastd --show-key --machine-readable -c /tmp/sec && rm /tmp/sec) + %> +
@@ -58,6 +60,7 @@ fi
Bekannte Knoten:<%= $(($(batctl tg -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null)+1)) %>
Nachbarknoten:<%= $(batctl o -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null) %>
VPN via fastd:<%= ${vpn_active} %>
fastd public key:<%= ${fastd_pub} %>
Laufzeit:<%= ${uptime} %>
Auslastung:<%= ${load} %>
Uhrzeit:<% date %>