![]() |
2014-06-03
, 16:42
|
Posts: 175 |
Thanked: 210 times |
Joined on Mar 2013
|
#2
|
![]() |
Tags |
disconnect, execute script, openvpn |
|
I would like to auto execute a script when the openvpn connection goes down to automatically unmount the sshfs share that is accessible only through the vpn.
So I have put in my config in /etc/openvpn/myconf.ovpn:
My script to unmount the sshfs share works great when triggered manually, but when triggered automatically by the maemo-update-resolvconf, it doesn't have the time to finish executing.
The script:
MY QUESTION: How to delay the openvpn disconnect so that the script finishes executing? (I have tried a "sleep 10" in maemo-update-resolvconf after "/etc/openvpn/myscript" but it doesn't help.
Thank you.