Compare commits

..

1 Commits

Author SHA1 Message Date
Robert Langhammer b113e8e1d6 fff-network: remove iwconfig
ci/woodpecker/pr/woodpecker Pipeline is pending Details
iwconfig is upstream scheduled for removal and no longer working.
It is only used once to get the txpower for the nodewatcher.

Fixes: #327

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
2024-03-26 14:17:59 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ for filename in $(grep 'up\|unknown' /sys/class/net/*/operstate); do
/type/ { split($0, t, " "); printf "<wlan_type>"t[2]"</wlan_type>" }
/channel/{ split($0, c, " "); printf "<wlan_channel>"c[2]"</wlan_channel>" }
/width/{ split($0, w, ": "); sub(/ .*/, "", w[2]); printf "<wlan_width>"w[2]"</wlan_width>" }
/txpower/{ print "<wlan_tx_power>"$2,$3"</wlan_tx_power>" }
/txpower/{ print "<wlan_tx_power>"$2"dBm</wlan_tx_power>" }
')
interface_data=$interface_data"</$iface>"