for the moment, im gonna make a python script that depens on what ip address is assigned to the rpi... But it would be best to run it straight from autohotspot when it has been choosing ap or client mode.
i guess somewhere in the autohotspotN file? suggestion