12 lines
245 B
Bash
12 lines
245 B
Bash
#!/bin/bash
|
|
|
|
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8)
|
|
name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
|
|
|
|
if [[ ! $name ]]
|
|
then
|
|
echo " "
|
|
else
|
|
echo " $name $power"
|
|
fi
|