include $(TOPDIR)/rules.mk
PKG_NAME:=kit-busrouter
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/kit-busrouter
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Pioneer Bus Router multi-WAN balancer
  DEPENDS:=+mwan3 +curl +jq
endef
define Package/kit-busrouter/description
 Intelligent 5G+Starlink balancing, SIM auto-switch, and fleet telemetry.
endef
define Build/Compile
endef
define Package/kit-busrouter/install
	$(INSTALL_DIR) $(1)/usr/lib/busrouter $(1)/etc/init.d $(1)/etc/config $(1)/etc/busrouter
	$(CP) ./files/usr/lib/busrouter/* $(1)/usr/lib/busrouter/
	$(INSTALL_BIN) ./files/etc/init.d/busrouter $(1)/etc/init.d/busrouter
	$(INSTALL_CONF) ./files/etc/config/busrouter $(1)/etc/config/busrouter
	$(INSTALL_CONF) ./files/etc/busrouter/busrouter.conf $(1)/etc/busrouter/busrouter.conf
endef
$(eval $(call BuildPackage,kit-busrouter))
