gwinfo: Make grep silent

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2018-08-28 23:07:33 +02:00
parent 2b8b267ed2
commit c26c5e79e4
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ echo "{\"version\":\"1.4\",\"hostname\":\"$hostname\",\"stats_page\":\"$statslin
comma=""
for netif in $(ls /sys/class/net); do
if [ "$netif" = "lo" ] || echo "$netif" | grep "w" ; then # remove wXap, wXmesh, etc.
if [ "$netif" = "lo" ] || echo "$netif" | grep -q "w" ; then # remove wXap, wXmesh, etc.
continue
fi
mac="$(cat "/sys/class/net/$netif/address")"