show_info: Display hood information

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Adrian Schmutzler 2017-11-06 10:18:10 +01:00 committed by Tim Niemeyer
parent a9b3dfd7e0
commit 09a84bdd7b
1 changed files with 14 additions and 0 deletions

View File

@ -1,10 +1,12 @@
#!/bin/sh
. /etc/firmware_release
. /lib/functions/fff/evalhoodinfo
board_name=$(uci -q get board.model.name)
HOSTNAME=$(uci -q get 'system.@system[0].hostname')
hood="$(uci -q get "system.@system[0].hood")"
human_bytes() {
while read B ; do
@ -113,6 +115,18 @@ echo "Laufzeit: ${uptime}"
echo "Auslastung: ${load}"
echo "Uhrzeit: $(date)"
echo ""
echo "-> HOOD"
echo "Hood: ${hood}"
echo "Mesh-Type (2.4/5 GHz): ${mesh_type2} / ${mesh_type5}"
echo "Channel (2.4/5 GHz): ${real_chan2ghz} / ${real_chan5ghz} (real) | ${chan2ghz} / ${chan5ghz} (Hood)"
echo "SSID (Client-AP): ${real_essid} (real) | ${essid} (Hood)"
if uci -q get wireless.w2configap > /dev/null ; then
echo "Config-AP: up"
else
echo "Config-AP: down"
fi
echo ""
echo "-> SOFTWARE"
echo "Firmware Version: ${FIRMWARE_VERSION}"