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