diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-06-12 04:54:40 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-06-12 04:54:40 +0530 |
commit | e5b21a77a526e03e9d68e10f8857cad1674782e6 (patch) | |
tree | 5f22e010e5a9bccca4887dda0c6fc62ac9cf60f4 /.scripts/wifi-captive-login | |
parent | f2c332a103f13c0ceca6619a1f12a2871a21c7ab (diff) |
updating aliasrc and few scripts
Diffstat (limited to '.scripts/wifi-captive-login')
-rwxr-xr-x | .scripts/wifi-captive-login | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.scripts/wifi-captive-login b/.scripts/wifi-captive-login index 2603009..fdfaf2f 100755 --- a/.scripts/wifi-captive-login +++ b/.scripts/wifi-captive-login @@ -1,3 +1,5 @@ #!/bin/sh -login=$(netstat -nr | sed '3p;d' | cut -d " " -f 10) -st -e librewolf $login +if command -v netstat 1>/dev/null; then + login=$(netstat -nr | sed '3p;d' | cut -d " " -f 10) ; + st -e librewolf $login ; +fi |