[openwrt/openwrt] qosify: install hotplug handler into /etc/hotplug.d/iface as well

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 22 08:23:33 PST 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3a1597c7bd95d1fb12cee66b034197a7cf810cd2

commit 3a1597c7bd95d1fb12cee66b034197a7cf810cd2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Nov 22 17:21:51 2021 +0100

    qosify: install hotplug handler into /etc/hotplug.d/iface as well
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/config/qosify/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/package/network/config/qosify/Makefile b/package/network/config/qosify/Makefile
index 19ee87db7c..cca2b7a51d 100644
--- a/package/network/config/qosify/Makefile
+++ b/package/network/config/qosify/Makefile
@@ -44,7 +44,14 @@ define Package/qosify/conffiles
 endef
 
 define Package/qosify/install
-	$(INSTALL_DIR) $(1)/lib/bpf $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/net $(1)/etc/qosify
+	$(INSTALL_DIR) \
+		$(1)/lib/bpf \
+		$(1)/usr/sbin \
+		$(1)/etc/init.d \
+		$(1)/etc/config \
+		$(1)/etc/qosify \
+		$(1)/etc/hotplug.d/net \
+		$(1)/etc/hotplug.d/iface
 	$(INSTALL_DATA) $(PKG_BUILD_DIR)/qosify-bpf.o $(1)/lib/bpf
 	$(INSTALL_BIN) \
 		$(PKG_INSTALL_DIR)/usr/bin/qosify \
@@ -54,6 +61,7 @@ define Package/qosify/install
 	$(INSTALL_DATA) ./files/qosify-defaults.conf $(1)/etc/qosify/00-defaults.conf
 	$(INSTALL_DATA) ./files/qosify.conf $(1)/etc/config/qosify
 	$(INSTALL_DATA) ./files/qosify.hotplug $(1)/etc/hotplug.d/net/10-qosify
+	$(INSTALL_DATA) ./files/qosify.hotplug $(1)/etc/hotplug.d/iface/10-qosify
 endef
 
 $(eval $(call BuildPackage,qosify))



More information about the lede-commits mailing list