mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-09 23:34:51 +01:00
tr143: Added support of NumberOfConnection for airoha download test
This commit is contained in:
parent
98f5e19916
commit
2fc98ac307
3 changed files with 35 additions and 2 deletions
|
|
@ -5,13 +5,13 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tr143
|
||||
PKG_VERSION:=1.1.8
|
||||
PKG_VERSION:=1.1.9
|
||||
|
||||
LOCAL_DEV:=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/tr143d.git
|
||||
PKG_SOURCE_VERSION:=5f8404e01e5e4478de528027fa12717c1a2256f3
|
||||
PKG_SOURCE_VERSION:=520701ed7fcf9595e0b9040e6e5269dc98b97d54
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_MIRROR_HASH:=skip
|
||||
endif
|
||||
|
|
@ -36,12 +36,15 @@ endef
|
|||
MAKE_PATH:=src
|
||||
|
||||
define Package/tr143/install
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(BBFDM_INSTALL_MS_PLUGIN) $(PKG_BUILD_DIR)/src/libtr143d.so $(1) netmngr 11
|
||||
|
||||
ifeq ($(CONFIG_TARGET_SUBTARGET),"an7581")
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/airoha/scripts/download $(1)
|
||||
$(INSTALL_DATA) ./files/an7581/etc/uci-defaults/* $(1)/etc/uci-defaults/
|
||||
else
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/scripts/download $(1)
|
||||
$(INSTALL_DATA) ./files/other/etc/uci-defaults/* $(1)/etc/uci-defaults/
|
||||
endif
|
||||
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/scripts/traceroute $(1)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
set_tr143_download_defaults() {
|
||||
if [ ! -f /etc/bbfdm/dmmap/dmmap_diagnostics ]; then
|
||||
touch /etc/bbfdm/dmmap/dmmap_diagnostics
|
||||
fi
|
||||
|
||||
uci -q -c /etc/bbfdm/dmmap set dmmap_diagnostics.download='download'
|
||||
uci -q -c /etc/bbfdm/dmmap set dmmap_diagnostics.download.DefaultNumberOfConnections='4'
|
||||
uci -q -c /etc/bbfdm/dmmap set dmmap_diagnostics.download.DownloadDiagnosticMaxConnections='8'
|
||||
|
||||
uci -q -c /etc/bbfdm/dmmap commit dmmap_diagnostics
|
||||
}
|
||||
|
||||
set_tr143_download_defaults
|
||||
15
tr143/files/other/etc/uci-defaults/30_tr143_enforce_defaults
Normal file
15
tr143/files/other/etc/uci-defaults/30_tr143_enforce_defaults
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
set_tr143_download_defaults() {
|
||||
if [ ! -f /etc/bbfdm/dmmap/dmmap_diagnostics ]; then
|
||||
touch /etc/bbfdm/dmmap/dmmap_diagnostics
|
||||
fi
|
||||
|
||||
uci -q -c /etc/bbfdm/dmmap set dmmap_diagnostics.download='download'
|
||||
uci -q -c /etc/bbfdm/dmmap set dmmap_diagnostics.download.DefaultNumberOfConnections='1'
|
||||
uci -q -c /etc/bbfdm/dmmap set dmmap_diagnostics.download.DownloadDiagnosticMaxConnections='1'
|
||||
|
||||
uci -q -c /etc/bbfdm/dmmap commit dmmap_diagnostics
|
||||
}
|
||||
|
||||
set_tr143_download_defaults
|
||||
Loading…
Add table
Reference in a new issue