up netspeedtest

This commit is contained in:
sirpdboy 2021-04-05 02:14:05 +08:00
parent a6f24694f0
commit 89c3f03086

View File

@ -29,10 +29,18 @@ define Package/$(PKG_NAME)/description
luci for testing internet bandwidth using speedtest.net
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)/$(PKG_NAME)
$(CP) ./file/speedtest $(PKG_BUILD_DIR)/$(PKG_NAME)
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) ./files/speedtest $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME)/speedtest $(1)/usr/bin
endef
define Package/$(PKG_NAME)/postinst
endef
$(eval $(call BuildPackage,$(PKG_NAME)))