From ab44d2383e9899b1120270fa13854cb47bf03f25 Mon Sep 17 00:00:00 2001 From: vdutta Date: Tue, 24 Dec 2019 15:11:14 +0530 Subject: [PATCH] ieee1905: Generating topology/push button event - Generating topology change event on ubus "client" event - Generating push button event on ubus "wifi.wps", "in-progress" event --- ieee1905/Makefile | 7 ++-- .../files/etc/hotplug.d/button/11-ieee1905 | 36 ------------------- 2 files changed, 2 insertions(+), 41 deletions(-) delete mode 100644 ieee1905/files/etc/hotplug.d/button/11-ieee1905 diff --git a/ieee1905/Makefile b/ieee1905/Makefile index dde289c2c..622fbf65c 100644 --- a/ieee1905/Makefile +++ b/ieee1905/Makefile @@ -5,10 +5,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ieee1905 -PKG_VERSION:=1.1.2 +PKG_VERSION:=1.1.3 PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=9b6b93b7cd03ef8ecf4948b019ff98652b005acc +PKG_SOURCE_VERSION:=5662473a82582b00f35c7e8915734f033a2fe789 PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/ieee1905.git PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz @@ -44,10 +44,7 @@ TARGET_CFLAGS += \ define Package/ieee1905/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_DIR) $(1)/etc/hotplug.d - $(INSTALL_DIR) $(1)/etc/hotplug.d/button $(INSTALL_BIN) ./files/etc/init.d/ieee1905 $(1)/etc/init.d/ieee1905 - $(INSTALL_BIN) ./files/etc/hotplug.d/button/11-ieee1905 $(1)/etc/hotplug.d/button/11-ieee1905 $(INSTALL_DATA) ./files/etc/config/ieee1905 $(1)/etc/config/ieee1905 $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/lib diff --git a/ieee1905/files/etc/hotplug.d/button/11-ieee1905 b/ieee1905/files/etc/hotplug.d/button/11-ieee1905 deleted file mode 100644 index fc8d0d316..000000000 --- a/ieee1905/files/etc/hotplug.d/button/11-ieee1905 +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -TOPOLOGY_FILE="/tmp/topology_change" -WPS_FILE="/tmp/virtual_push_button" - -handle_topology_change() { - [ -f ${TOPOLOGY_FILE} ] && \ - touch ${TOPOLOGY_FILE} -} - -handle_wps() { - [ -f ${WPS_FILE} ] && \ - touch ${WPS_FILE} -} - -case "$ACTION" in - add|register) - [ "wifibutton" == "$INTERFACE" -o "ecobutton" == "$INTERFACE" ] && { - handle_wps - } - [ "wifi_2g" == "$INTERFACE" ] && { - handle_wps - } - [ "wifi_5g" == "$INTERFACE" ] && { - handle_wps - } - [ "wpsbutton" == "$INTERFACE" ] && { - handle_wps - } - [ "wpscbutton" == "$INTERFACE" ] && { - handle_topology_change - } - ;; - remove|unregister) - ;; -esac