aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/rc.button/wps
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/rc.button/wps')
-rwxr-xr-xpackage/base-files/files/etc/rc.button/wps6
1 files changed, 6 insertions, 0 deletions
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