I am a newbie with Raspberry Pi. I am having one Pi3 and one Pi Zero. Pi3 is acting as a router and my PiZero is connected with it.
I want to trigger a script on connect-disconnect event. I have configured the SSID and password in the
wpa_supplicant.conf file. How can I ensure that my script is triggered when WiFi connection is established/broken?
Any help will be appreciated.