diff options
author | Christian Hesse <mail@eworm.de> | 2014-10-16 21:20:57 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-10-16 21:20:57 +0200 |
commit | 8612f9f3c371631fa33a4279bdad20c0d31d6c7c (patch) | |
tree | ba0e16d67b7b716bac1cd6c68f0002b76516fc21 | |
parent | 8516403759119ecfd33bce62b0b83d684e12687e (diff) | |
download | networkmanager-dispatcher-openvpn-8612f9f3c371631fa33a4279bdad20c0d31d6c7c.tar.gz networkmanager-dispatcher-openvpn-8612f9f3c371631fa33a4279bdad20c0d31d6c7c.tar.zst |
ignore tun/tap interfaces
-rwxr-xr-x | 40-openvpn | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -3,6 +3,13 @@ INTERFACE="${1}" STATUS="${2}" +# VPN interfaces managed by networkmanager send events vpn-{up,down}. +# If the connection is started by whatever networkmanager sees this +# and triggers event up or down. Ignore these. +if ! ip tuntap | grep -q "^${INTERFACE}:"; then + exit 0 +fi + if [ "${STATUS}" == "up" ]; then if pgrep -x openvpn >/dev/null; then kill -USR1 $(pgrep -x openvpn) |