(Scripts/Status)~set connection text to have the connection name
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user