From: John Crispin Date: Mon, 11 Nov 2013 12:19:10 +0000 (+0000) Subject: base-files: add a generic wps button handler X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=07a508345d7078f20dcce65e57a4b3ffb7261e23;p=15.05%2Fopenwrt.git base-files: add a generic wps button handler Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38726 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/etc/rc.button/wps b/package/base-files/files/etc/rc.button/wps new file mode 100755 index 0000000000..c913d5bab3 --- /dev/null +++ b/package/base-files/files/etc/rc.button/wps @@ -0,0 +1,6 @@ +#!/bin/sh + +for dir in /var/run/hostapd-*; do + [ -d "$dir" ] || continue + hostapd_cli -p "$dir" wps_pbc +done