aboutsummaryrefslogtreecommitdiff
path: root/utils/airos-dfs-reset/Makefile
blob: 2633e72a43af0d2056bb7238c4557c0c8a1f6c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2021 Simon Polack <spolack+git@@mailbox.org>
#

include $(TOPDIR)/rules.mk

PKG_NAME:=airos-dfs-reset
PKG_VERSION:=1
PKG_RELEASE:=1

PKG_MAINTAINER:=Simon Polack <spolack+git@mailbox.org>
PKG_LICENSE:=GPL-2.0-only

include $(INCLUDE_DIR)/package.mk

define Package/airos-dfs-reset
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Companion app for Ubiquity AirOS to help with DFS
  PKGARCH:=all
  EXTRA_DEPENDS:=dropbear
endef

define Package/airos-dfs-reset/description
Companion app for Ubiquity AirOS Gear to enforce fallback to original frequency after DFS event is over.
It works by soft-rebooting if running-frequency doesnt match the configured frequency.
endef

define Package/airos-dfs-reset/conffiles
/etc/config/airos-dfs-reset
endef

define Build/Compile
endef

define Package/airos-dfs-reset/install
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/airos-dfs-reset.init $(1)/etc/init.d/airos-dfs-reset
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) ./files/airos-dfs-reset $(1)/usr/bin/airos-dfs-reset
	$(INSTALL_DIR) $(1)/etc/config
	$(INSTALL_DATA) ./files/airos-dfs-reset.config $(1)/etc/config/airos-dfs-reset
endef

$(eval $(call BuildPackage,airos-dfs-reset))