I've got a script that programmatically applies different proxy settings for different wifi networks, but I'd like to make it automatic; when a certain wifi network is logged into, my script is called with the network name.
Any ideas?
Assuming you are on a linux if-up/if-down
hooks is what you need.
Look at /etc/network/if-up.d
and /etc/network/if-down.d
.
The interfaces(5) manual page whould help in general.