jhubig / FritzBoxShell

Some shell scripts for controlling and checking the Fritz!Box/Fritz!Repeater
MIT License
139 stars 22 forks source link

MISC_LUA does not work on boxes w/o 5 Ghz #42

Open uahim opened 9 months ago

uahim commented 9 months ago

MISC_LUA did not work at all for me - I assume that the format is different on boxes that only have 2,4 GHz. in the output on my box, "LAN" is uppercase and there is no "desc", only "type":"WLAN - 2,4 GHz"

fixed it for myself with an additional totalConnectionsWLAN2G=$(grep -io '"type":"wlan - 2' <<< $overview | wc -l) (but I don't know if "type":"wlan - (...)" is present on boxes with 5ghz)

and an exta -i in grep here totalConnectionsLAN=$(echo $overview | grep -iow '"type":"lan"' | wc -l)

also, is it just me or is MISC_LUA very, very slow? at least on my box, it takes up to 30 seconds or so.