diff --git a/netspeedtest/Makefile b/netspeedtest/Makefile index dc3d5ae..0df0b22 100644 --- a/netspeedtest/Makefile +++ b/netspeedtest/Makefile @@ -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)))