1
0
Fork 0
forked from mirror/openwrt
openwrt/package/network/config/wifi-scripts/files/etc/rc.button/wps
Felix Fietkau 3aee42001f wifi-scripts: add modular wps button handler scripts
Execute scripts in /etc/rc.wps until one of them returns a exit code of 0.
Split up sta and ap handling of wps into separate scripts.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-08-08 18:53:30 +02:00

6 lines
133 B
Bash
Executable file

#!/bin/sh
[ "$ACTION" = "pressed" ] && exit 5
for script in /etc/rc.wps/*; do
[ -x "$script" ] || continue
"$script" && break
done