I am trying to execute a command on hostapd when there is a new connection established.
I used this example:
hostapd: execute a command when there is new connection established
But when I start the script, on device connection, I receive an error:
pi@raspberrypi:~ $ sudo hostapd_cli -a '/onHostapdChange.sh'
Selected interface 'wlan0'
execv: No such file or directory
Could you help me please?
/onHostapdChange.sh
actually exist?hostapd_cli
didn't exit. Do you have to re-do this ever time the machine restarts or does it somehow remember to run the script?