wifi add no net

This commit is contained in:
Linux User 2022-08-14 16:40:32 +00:00
parent 257e59e067
commit 3a35a95ce9
1 changed files with 6 additions and 1 deletions

View File

@ -3,4 +3,9 @@
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8) 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) name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
if [[ ! $name ]]
then
echo "  "
else
echo " $name $power" echo " $name $power"
fi