Debian Codegraph @

config/scripts/wlan__-__key_y.sh

raw
1 #!/bin/sh
2 #output the ESSID and signal level
3 #needs iw (for iwconfig)
4 if [[ $(nmcli device wifi | wc -l ) -ge 2 ]]; then
5 echo "Signal $(nmcli -f IN-USE,SIGNAL device wifi | grep "*" | tail -n1 | cut -f 2 -d '*') %"
6 echo "Name $(nmcli -f IN-USE,SSID device wifi | grep "*" | tail -n1 | cut -f 2 -d '*') "
7 else
8 echo "Leider keine Wlan verbindung $(whoami)"
9 fi