diff options
Diffstat (limited to 'Scripts/.local/scripts/status/connection')
-rwxr-xr-x | Scripts/.local/scripts/status/connection | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection new file mode 100755 index 0000000..139fea0 --- /dev/null +++ b/Scripts/.local/scripts/status/connection @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +internet=$(nmcli g | sed -n 2p | awk '{print $1}') +if [[ $internet == "connected" ]] +then + echo "Connected" +else + echo "Not connected" +fi |