mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
wireless: fix shellcheck warnings
Shellcheck warned about "dash doesn't support x". This plugin runs only on OpenWRT and there is no dash...
This commit is contained in:
parent
4bc2b62610
commit
d889349332
1 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ noise.label Noise"
|
|||
interfaces=$(iwinfo 2> /dev/null | sed '/^wlan/!d; s/ .*//g')
|
||||
for interface in ${interfaces}
|
||||
do
|
||||
echo "multigraph wireless_assoc_${interface/-/_}
|
||||
echo "multigraph wireless_assoc_$(clean_fieldname "${interface}")
|
||||
graph_title WLAN ${interface} associations
|
||||
graph_vlabel Clients
|
||||
graph_args --lower-limit 0
|
||||
|
@ -27,12 +27,12 @@ fetch_wireless() {
|
|||
for interface in ${interfaces}
|
||||
do
|
||||
echo "multigraph wireless_${interface}"
|
||||
iwinfo ${interface} info | sed -r 's/unknown/0 dBm/g; /Signal.*Noise/!d; s/^.* Signal: ([-0-9]+) dBm Noise: ([-0-9]+) dBm/signal.value \1\nnoise.value \2/'
|
||||
iwinfo "${interface}" info | sed -r 's/unknown/0 dBm/g; /Signal.*Noise/!d; s/^.* Signal: ([-0-9]+) dBm Noise: ([-0-9]+) dBm/signal.value \1\nnoise.value \2/'
|
||||
done
|
||||
interfaces=$(iwinfo 2> /dev/null | sed '/^wlan/!d; s/ .*//g')
|
||||
for interface in ${interfaces}
|
||||
do
|
||||
echo "multigraph wireless_assoc_${interface/-/_}"
|
||||
echo "clients.value $(iwinfo ${interface} assoc | grep -c SNR)"
|
||||
echo "multigraph wireless_assoc_$(clean_fieldname "${interface}")"
|
||||
echo "clients.value $(iwinfo "${interface}" assoc | grep -c SNR)"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue