(Scripts/Status)~set connection text to have the connection name

This commit is contained in:
2020-12-30 20:52:17 +00:00
parent 336294509d
commit 83dcb1549a

View File

@@ -3,7 +3,8 @@
internet=$(nmcli g | sed -n 2p | awk '{print $1}') internet=$(nmcli g | sed -n 2p | awk '{print $1}')
if [[ $internet == "connected" ]] if [[ $internet == "connected" ]]
then then
echo "" con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g')
echo " " $con
else else
echo "" echo " Not Connected"
fi fi