I want to write a bash script that will put off dropbox automatic synchronization if i'm connected to particular wifi ssid. How can i catch this event: for example i'm working at home and sync is on, if i'm at another place (cafe, work, etc) auto sync is off.
Also I want to do some other task depending on wifi ssid.