From ca4a8b1bee22646319f8e2aeb1ed59062403a9b8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 8 Jul 2010 18:36:17 +0000 Subject: hostapd: add preliminary wps script support (push-button only, does not handle multi-bss yet) SVN-Revision: 22100 --- package/hostapd/files/wps-hotplug.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 package/hostapd/files/wps-hotplug.sh (limited to 'package/hostapd/files/wps-hotplug.sh') diff --git a/package/hostapd/files/wps-hotplug.sh b/package/hostapd/files/wps-hotplug.sh new file mode 100644 index 0000000000..b5376cc55b --- /dev/null +++ b/package/hostapd/files/wps-hotplug.sh @@ -0,0 +1,6 @@ +if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then + for dir in /var/run/hostapd-*; do + [ -d "$dir" ] || continue + hostapd_cli -p "$dir" wps_pbc + done +fi -- cgit v1.2.3