I want to know how I would run a shell script after I connect to a network. For example, when my MBP wakes when I open it and it connects to my home wireless, I would like to run a script after it connects.
I would like to know how to do this in general for any script. However, my reason for wanting to do this now is because I am using hamachi as a vpn between computers and I have found that when my network reconnects after the os wakes, hamachi needs to be stopped and restarted in order to work properly.
Any info would help.
Thanks.
I would like to know how to do this in general for any script. However, my reason for wanting to do this now is because I am using hamachi as a vpn between computers and I have found that when my network reconnects after the os wakes, hamachi needs to be stopped and restarted in order to work properly.
Any info would help.
Thanks.