[status] fix: openvpn status display
This commit is contained in:
parent
553556143f
commit
9a46c8d9af
@ -23,6 +23,6 @@ if [ "up" = "$eth" ]; then
|
||||
str="$(printf "%s / " "$str")"
|
||||
fi
|
||||
vpn="$(ip route | head -n1 | rev | cut -d' ' -f2 | rev)"
|
||||
[ "tun0" = "$vpn" -o "tap0" = "$vpn" ] && str="$(printf "%s " "$str")"
|
||||
[ "tun0" = "$vpn" -o "tap0" = "$vpn" ] && str="$(printf "%s / " "$str")"
|
||||
|
||||
printf " %s " "$str"
|
||||
|
Reference in New Issue
Block a user