I have set up Tunnelblick 3.2beta28 and have successfully been using it to connect to an OpenVPN server.
Now I want to perform some tasks that should be executed when I disconnect.
So inside ~/Library/Application Support/Tunnelblick/Configurations I put a file called "post-disconnect.sh" that contains these lines:
#!/bin/bash
mkdir /Users/samd/Desktop/asdf
But this doesn't seem to get executed when I disconnect from my VPN server (i.e. when I manually choose "disconnect" from the Tunnelblick menu), i.e. the asdf directory doesn't get created on my desktop.
I have tried restarting Tunnelblick and reconnecting, I have tried set up the VPN configuration again (while leaving the post-disconnect.sh where it is), and I have also tried doing a "chmod 777" on my post-disconnect.sh file. But nothing seems to be working. That script is not getting called.
Any ideas?