Skip to content
Snippets Groups Projects
Commit b38578ad authored by Adrian Schmutzler's avatar Adrian Schmutzler
Browse files

show_info: Remove L2TP diagnostics


Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: default avatarRobert Langhammer <rlanghammer@web.de>
Reviewed-by: default avatarFabian Bläse <fabian@blaese.de>
parent 5a119dcd
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-support
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
......
......@@ -62,11 +62,7 @@ if pidof fastd >/dev/null ; then
else
vpn_active="inaktiv"
fi
if grep -q '1' /sys/class/net/l2tp*/carrier 2> /dev/null ; then
l2tp_active="aktiv"
else
l2tp_active="inaktiv"
fi
up="$(uptime)"
load="${up##*:}"
uptime="${up%%,*}"
......@@ -101,7 +97,6 @@ echo "MAC-Adresse: $(cat /sys/class/net/br-mesh/address)"
echo "Bekannte Knoten: $(($(batctl tg -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null)+1))"
echo "Nachbarknoten: $(batctl o -H | cut -b 40-56 | sort | uniq | wc -l 2>/dev/null)"
echo "VPN via fastd: ${vpn_active}"
echo "VPN via L2TP: ${l2tp_active}"
echo "Laufzeit: ${uptime}"
echo "Auslastung: ${load}"
echo "Uhrzeit: $(date)"
......@@ -145,21 +140,6 @@ else
echo "No FASTD peers available"
fi
function printL2TP() {
local broker="$1"
echo "${broker}: $(uci -q get "tunneldigger.$broker.address")"
}
echo ""
if [ -s /etc/config/tunneldigger ]; then
echo "-> L2TP: Peer list"
config_load tunneldigger
config_foreach printL2TP broker
else
echo "-> L2TP"
echo "No L2TP peers available"
fi
echo ""
echo "-> Netz: WAN"
echo "Internet vorhanden: ${internet_active}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment