mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
netifyd: support uci parameters
Integrate with uci to support 'enabled/disabled' startup option and
override netify's default auto network selection.
config netifyd
option enabled 0
option autoconfig 1
autoconfig: Use netify's in-built interface selection
else use 'internal/external_if' definitions.
Also persist important agent config across sysupgrade
agent.uuid, serial.uuid, site.uuid
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
This commit is contained in:
committed by
Kevin Darbyshire-Bryant
parent
bc94e9f657
commit
f084977ca3
@@ -45,6 +45,10 @@ endef
|
||||
|
||||
define Package/netifyd/conffiles
|
||||
/etc/netifyd.conf
|
||||
/etc/config/netifyd
|
||||
/etc/netify.d/agent.uuid
|
||||
/etc/netify.d/serial.uuid
|
||||
/etc/netify.d/site.uuid
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS+=-ffunction-sections -fdata-sections -Wno-psabi
|
||||
@@ -85,6 +89,8 @@ endef
|
||||
define Package/netifyd/install
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/deploy/netifyd.conf $(1)/etc
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/netifyd.config $(1)/etc/config/netifyd
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/netifyd.init $(1)/etc/init.d/netifyd
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
|
||||
Reference in New Issue
Block a user