commit 45593860bd1f013a5982bfe280dfe0b25eadfe2b parent 6e0aaa0968f546a94b5f0551a61c2a05b22237ec Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de> Date: Wed, 19 Jun 2019 20:30:09 +0200 Use nordvpn binary for VPN status message Diffstat:
M | bin/cowsay_ip.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/cowsay_ip.sh b/bin/cowsay_ip.sh @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/dash -st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then cowsay -b VPN; else cowsay -p no VPN; fi' +st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then nordvpn status | cowsay -b; else cowsay -p no VPN; fi'