diff options
-rwxr-xr-x | 40-openvpn | 7 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/40-openvpn b/40-openvpn new file mode 100755 index 0000000..0af45ca --- /dev/null +++ b/40-openvpn @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "${2}" == "up" ]; then + if pgrep -x openvpn >/dev/null; then + kill -USR1 $(pgrep -x openvpn) + fi +fi diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cbd8f55 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +install: 40-openvpn + install -D -m0755 40-openvpn $(DESTDIR)/etc/NetworkManager/dispatcher.d/40-openvpn |