I have two one-liner scripts that write IP address and SSID to files in my Dropbox; I would like my Android phone to sync to Dropbox and read the IP and SSID and do stuff via Tasker if it's on the same network.
That said, I am looking for a way to execute the scripts whenever I'm connected to wifi.
Thanks very much for the help!
I had to add the following to my
/etc/network/interfaces
:Then place a script in
/etc/network/if-up.d/
and check if"$IFACE" = "wlan0"
.