From e5b21a77a526e03e9d68e10f8857cad1674782e6 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 12 Jun 2022 04:54:40 +0530 Subject: updating aliasrc and few scripts --- .scripts/wifi-captive-login | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.scripts/wifi-captive-login') 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 -- cgit v1.2.3