You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2021 Simon Polack <spolack+git@@mailbox.org>
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=airos-dfs-reset
  7. PKG_VERSION:=1
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_MAINTAINER:=Simon Polack <spolack+git@mailbox.org>
  10. PKG_LICENSE:=GPL-2.0-only
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/airos-dfs-reset
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=Companion app for Ubiquity AirOS to help with DFS
  16. PKGARCH:=all
  17. EXTRA_DEPENDS:=dropbear
  18. endef
  19. define Package/airos-dfs-reset/description
  20. Companion app for Ubiquity AirOS Gear to enforce fallback to original frequency after DFS event is over.
  21. It works by soft-rebooting if running-frequency doesnt match the configured frequency.
  22. endef
  23. define Package/airos-dfs-reset/conffiles
  24. /etc/config/airos-dfs-reset
  25. endef
  26. define Build/Compile
  27. endef
  28. define Package/airos-dfs-reset/install
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/airos-dfs-reset.init $(1)/etc/init.d/airos-dfs-reset
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) ./files/airos-dfs-reset $(1)/usr/bin/airos-dfs-reset
  33. $(INSTALL_DIR) $(1)/etc/config
  34. $(INSTALL_DATA) ./files/airos-dfs-reset.config $(1)/etc/config/airos-dfs-reset
  35. endef
  36. $(eval $(call BuildPackage,airos-dfs-reset))