From 594b13f5f9bf07b12175781e65a8faa4b25f29b2 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Tue, 17 Oct 2023 19:02:08 +0530 Subject: [PATCH] bbfdm: link plugins from old path --- bbfdm/Makefile | 3 ++- .../etc/uci-defaults/99-link-core-plugins | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 bbfdm/files/etc/uci-defaults/99-link-core-plugins diff --git a/bbfdm/Makefile b/bbfdm/Makefile index c716cedd1..c34d7ac0c 100644 --- a/bbfdm/Makefile +++ b/bbfdm/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bbfdm -PKG_VERSION:=1.4.0 +PKG_VERSION:=1.4.1 USE_LOCAL:=0 ifneq ($(USE_LOCAL),1) @@ -172,6 +172,7 @@ define Package/libbbfdm/default/install $(INSTALL_DATA) ./files/lib/upgrade/keep.d/bbf $(1)/lib/upgrade/keep.d/bbf $(INSTALL_BIN) ./files/etc/uci-defaults/95-portmap-firewall $(1)/etc/uci-defaults/95-portmap-firewall $(INSTALL_BIN) ./files/etc/uci-defaults/97-firewall-service $(1)/etc/uci-defaults/97-firewall-service + $(INSTALL_BIN) ./files/etc/uci-defaults/99-link-core-plugins $(1)/etc/uci-defaults/99-link-core-plugins $(INSTALL_BIN) ./files/etc/firewall.portmap $(1)/etc/firewall.portmap $(INSTALL_BIN) ./files/etc/firewall.service $(1)/etc/firewall.service ifeq ($(CONFIG_BBF_TR143),y) diff --git a/bbfdm/files/etc/uci-defaults/99-link-core-plugins b/bbfdm/files/etc/uci-defaults/99-link-core-plugins new file mode 100644 index 000000000..cadbe20e1 --- /dev/null +++ b/bbfdm/files/etc/uci-defaults/99-link-core-plugins @@ -0,0 +1,18 @@ +#!/bin/sh + +UNIFIED_PATH="/etc/bbfdm/plugins/" + +# Link JSON plugins +for f in `ls -1 /etc/bbfdm/json/*.json`; do + echo "# BBFDM JSON plugin ${f} not aligned #" + ln -s ${f} "${UNIFIED_PATH}" +done + +# Link DotSo plugins +for f in `ls -1 /usr/lib/bbfdm/*.so`; do + echo "# BBFDM DotSO plugin ${f} not aligned #" + ln -s ${f} "${UNIFIED_PATH}" +done + +exit 0 +