mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
tr143: use fastpath for download diagnostics in an7581
This commit is contained in:
parent
6df1768244
commit
b91ae7f7f0
2 changed files with 36 additions and 3 deletions
|
|
@ -5,13 +5,13 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tr143
|
||||
PKG_VERSION:=1.0.9
|
||||
PKG_VERSION:=1.1.0
|
||||
|
||||
LOCAL_DEV:=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/tr143d.git
|
||||
PKG_SOURCE_VERSION:=9307d1d65534b7a157265bfcaaa128fdd520425a
|
||||
PKG_SOURCE_VERSION:=45eacc8a5c8e1c639aff9793c471a94c53e75ea6
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_MIRROR_HASH:=skip
|
||||
endif
|
||||
|
|
@ -37,7 +37,15 @@ MAKE_PATH:=src
|
|||
|
||||
define Package/tr143/install
|
||||
$(BBFDM_INSTALL_MS_PLUGIN) $(PKG_BUILD_DIR)/src/libtr143d.so $(1) netmngr 11
|
||||
|
||||
ifeq ($(CONFIG_TARGET_SUBTARGET),"an7581")
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./airoha/etc/init.d/tr143 $(1)/etc/init.d/tr143
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/airoha/scripts/download $(1)
|
||||
else
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/scripts/download $(1)
|
||||
endif
|
||||
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/scripts/traceroute $(1)
|
||||
$(BBFDM_INSTALL_SCRIPT) $(PKG_BUILD_DIR)/scripts/upload $(1)
|
||||
$(BBFDM_INSTALL_SCRIPT) -d $(PKG_BUILD_DIR)/scripts/bbf_diag/ipping $(1)
|
||||
|
|
@ -47,7 +55,7 @@ endef
|
|||
|
||||
ifeq ($(LOCAL_DEV),1)
|
||||
define Build/Prepare
|
||||
$(CP) ~/git/tr143/* $(PKG_BUILD_DIR)/
|
||||
$(CP) ~/git/tr143d/* $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
endif
|
||||
|
||||
|
|
|
|||
25
tr143/airoha/etc/init.d/tr143
Normal file
25
tr143/airoha/etc/init.d/tr143
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=18
|
||||
|
||||
boot() {
|
||||
if ! lsmod | grep -qe "^arht_timer "; then
|
||||
status="-1"
|
||||
if [ -f /lib/modules/5.4.55/arht_timer.ko ]; then
|
||||
insmod /lib/modules/5.4.55/arht_timer.ko
|
||||
status="$?"
|
||||
fi
|
||||
|
||||
if [ "${status}" -ne 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! lsmod | grep -qe "^speedtest "; then
|
||||
if [ -f /lib/modules/5.4.55/speedtest.ko ]; then
|
||||
insmod /lib/modules/5.4.55/speedtest.ko
|
||||
fi
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue