add demo script for announce wlan
This commit is contained in:
9
config/scripts/wlan__-__key_y.sh
Executable file
9
config/scripts/wlan__-__key_y.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
#output the ESSID and signal level
|
||||
#needs iw (for iwconfig)
|
||||
if [[ $(nmcli device wifi | wc -l ) -ge 2 ]]; then
|
||||
echo "Signal $(nmcli -f IN-USE,SIGNAL device wifi | grep "*" | tail -n1 | cut -f 2 -d '*') %"
|
||||
echo "Name $(nmcli -f IN-USE,SSID device wifi | grep "*" | tail -n1 | cut -f 2 -d '*') "
|
||||
else
|
||||
echo "Leider keine Wlan verbindung $(whoami)"
|
||||
fi
|
Reference in New Issue
Block a user