فهرست منبع

use new button scheme

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 36004
John Crispin 12 سال پیش
والد
کامیت
fce3deddff
2فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 5 0
      package/network/services/hostapd/Makefile
  2. 2 0
      package/network/services/hostapd/files/wps-hotplug.sh

+ 5 - 0
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
 

+ 2 - 0
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