summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/wifi-captive-login6
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