Skip to content
Snippets Groups Projects
Commit fce3dedd authored by John Crispin's avatar John Crispin
Browse files

use new button scheme


Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>

SVN-Revision: 36004
parent f43b7934
No related branches found
No related tags found
No related merge requests found
...@@ -303,6 +303,11 @@ ifneq ($(LOCAL_TYPE),supplicant) ...@@ -303,6 +303,11 @@ ifneq ($(LOCAL_TYPE),supplicant)
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/hotplug.d/button $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/hotplug.d/button
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd_cli $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd_cli $(1)/usr/sbin/
$(INSTALL_DATA) ./files/wps-hotplug.sh $(1)/etc/hotplug.d/button/50-wps $(INSTALL_DATA) ./files/wps-hotplug.sh $(1)/etc/hotplug.d/button/50-wps
$(if $(CONFIG_PROCD_INIT),
$(INSTALL_DIR) $(1)/etc/rc.button/
$(INSTALL_BIN) ./files/wps-hotplug.sh $(1)/etc/rc.button/wps,
$(INSTALL_DATA) ./files/wps-hotplug.sh $(1)/etc/hotplug.d/button/50-wps
)
endef endef
endif endif
......
#!/bin/sh
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
for dir in /var/run/hostapd-*; do for dir in /var/run/hostapd-*; do
[ -d "$dir" ] || continue [ -d "$dir" ] || continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment