diff options
author | Marian Buschsieweke <marian.buschsieweke@ovgu.de> | 2017-06-20 09:54:59 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-23 08:14:50 +0000 |
commit | 9d245a72c8fbcc66c992228736746cafdc3c5690 (patch) | |
tree | a5f011888762d9f46b5c0676145cfb2bfcf371d7 /testing/wpa_actiond/wpa_actiond.confd | |
parent | b849b481a0446d7ef2458232a8819ce0b301e629 (diff) | |
download | aports-9d245a72c8fbcc66c992228736746cafdc3c5690.tar.bz2 aports-9d245a72c8fbcc66c992228736746cafdc3c5690.tar.xz |
testing/wpa_actiond: new aport
Daemon that connects to wpa_supplicant and handles connect and disconnect events
https://git.archlinux.org/wpa_actiond.git
Use case: A plain and simple way to automatically configure wireless networks
depending on SSID by invoking user supplied scripts.
I provided a patch to convert the nested function into a regular one, so that
GCC won't generate a trampoline. In addition, OpenRC integration was added.
Diffstat (limited to 'testing/wpa_actiond/wpa_actiond.confd')
-rw-r--r-- | testing/wpa_actiond/wpa_actiond.confd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/wpa_actiond/wpa_actiond.confd b/testing/wpa_actiond/wpa_actiond.confd new file mode 100644 index 0000000000..86fcb6a6e8 --- /dev/null +++ b/testing/wpa_actiond/wpa_actiond.confd @@ -0,0 +1,16 @@ +# /etc/conf.d/wpa_actiond: config file for /etc/init.d/wpa_actiond + +# Interface to listen at +WPA_ACTIOND_INTERFACE="wlan0" + +# Replace with custom script: +WPA_ACTIOND_SCRIPT="/usr/bin/logger" +# > The action script takes four parameters: +# > 1) The interface name +# > 2) The SSID of the wireless network or empty string if using wired driver +# > 3) The id_str parameter of the wpa_supplicant network section +# > 4) One of the strings CONNECT, LOST, REESTABLISHED, FAILED and DISCONNECT + +# Add custom arguments +WPA_ACTIOND_OPTS="" +# see `wpa_actiond -h` for mor information |