From c71f7c57301f468bc48567591071bcbe258083a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sun, 5 Sep 2021 13:59:36 -0500 Subject: i3blocks: replace `route` command with `ip route` --- scripts/i3blocks/vpn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/i3blocks/vpn b/scripts/i3blocks/vpn index d701056..dbaed98 100755 --- a/scripts/i3blocks/vpn +++ b/scripts/i3blocks/vpn @@ -3,7 +3,7 @@ INSTANCE="${BLOCK_INSTANCE:-}" # Check VPN status -GET_VPN=$(route | grep -E -- "tun0|$INSTANCE" | awk '{ print $NF }') +GET_VPN=$(ip route | grep -E -- "tun0|$INSTANCE" | awk '{ print $3 }') # Store status if [[ $GET_VPN == *"tun0"* || $GET_VPN == "$INSTANCE" ]] -- cgit v1.2.3