aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/connection
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local/scripts/status/connection')
-rwxr-xr-xScripts/.local/scripts/status/connection5
1 files changed, 4 insertions, 1 deletions
diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection
index 8e4ebf3..277dedf 100755
--- a/Scripts/.local/scripts/status/connection
+++ b/Scripts/.local/scripts/status/connection
@@ -3,8 +3,11 @@
internet=$(nmcli g | sed -n 2p | awk '{print $1}')
if [[ $internet == "connected" ]]
then
- con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g')
+ con=$(nmcli | grep "connected to" | sed "s/.*: connected to \(.*\)/\1/g")
echo "" $con
+elif [[ $internet == "disconnected" ]]
+then
+ echo ""
else
echo " Not Connected"
fi