mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
dec4a7c0b0
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
10 lines
309 B
Bash
10 lines
309 B
Bash
#!/bin/sh
|
|
|
|
|
|
wlan_int=wlan0
|
|
|
|
/sbin/ip link show dev ${wlan_int} >/dev/null 2>&1 || exit 1
|
|
/sbin/ip link show dev ${wlan_int} 2>&1 |fgrep -q -e"state DOWN" && exit 1
|
|
|
|
LINK_QUALITY=$( /sbin/iwconfig "${wlan_int}" 2>&1 |fgrep -e'Link Quality' |tr -s ' ' |cut -d' ' -f3 |cut -d= -f2 )
|
|
echo "{${LINK_QUALITY}}"
|