From: John Crispin Date: Wed, 13 Mar 2013 18:11:25 +0000 (+0000) Subject: use new button scheme X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fce3deddff594be4a9d71f53e5ed6812033c2dd0;p=openwrt%2Fstaging%2Fansuel.git use new button scheme Signed-off-by: John Crispin SVN-Revision: 36004 --- diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 80845bf06b..16db2d8e23 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -303,6 +303,11 @@ ifneq ($(LOCAL_TYPE),supplicant) $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/hotplug.d/button $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd_cli $(1)/usr/sbin/ $(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 endif diff --git a/package/network/services/hostapd/files/wps-hotplug.sh b/package/network/services/hostapd/files/wps-hotplug.sh index b5376cc55b..ffd3cf929b 100644 --- a/package/network/services/hostapd/files/wps-hotplug.sh +++ b/package/network/services/hostapd/files/wps-hotplug.sh @@ -1,3 +1,5 @@ +#!/bin/sh + if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then for dir in /var/run/hostapd-*; do [ -d "$dir" ] || continue