[status] fix: openvpn status check
This commit is contained in:
parent
c43b07af1a
commit
553556143f
@ -22,7 +22,7 @@ eth="$(cat /sys/class/net/enp0s31f6/operstate &> /dev/null)"
|
||||
if [ "up" = "$eth" ]; then
|
||||
str="$(printf "%s / " "$str")"
|
||||
fi
|
||||
vpn="$(pidof openvpn)"
|
||||
[ -n "$vpn" ] && str="$(printf "%s " "$str")"
|
||||
vpn="$(ip route | head -n1 | rev | cut -d' ' -f2 | rev)"
|
||||
[ "tun0" = "$vpn" -o "tap0" = "$vpn" ] && str="$(printf "%s " "$str")"
|
||||
|
||||
printf " %s " "$str"
|
||||
|
Reference in New Issue
Block a user