pilpil-client/get_rssi.sh

8 lines
318 B
Bash
Raw Normal View History

#!/bin/bash
# $1 is a device
#AP_MAC="$(arp -i wlan0 | tail -1 | awk '{print $3}')"
#iw dev $1 station get $AP_MAC | grep signal: | awk '{print $2}'
#cat /proc/net/wireless | grep wl | awk {'gsub(/:/, "", $1);print $1;gsub(/\./, "", $4);print$4'}
cat /proc/net/wireless | grep wl | awk {'gsub(/\./, "", $4);print$4'}