I have been googling since morning about any wpa_cli actionscript example and the commands but can't any decent one. can someone help me with some info or link please?
Thanks
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI have been googling since morning about any wpa_cli actionscript example and the commands but can't any decent one. can someone help me with some info or link please?
Thanks
Here is an example from arch linux wiki:
#!/bin/bash
case "$2" in
CONNECTED)
notify-send "WPA supplicant: connection established";
;;
DISCONNECTED)
notify-send "WPA supplicant: connection lost";
;;
esac
Remember to make the script executable, then use the
-a
flag to pass the script path towpa_cli
:
$ wpa_cli -a /path/to/script