From f2cb4789ebd48ba74158d76b97c43b26e02f36bc Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 19 May 2025 06:54:45 +0200 Subject: [PATCH] cloud_discovery: depend on the certificates package Fixes: WIFI-14694 Signed-off-by: John Crispin --- feeds/tip/cloud_discovery/Makefile | 1 + feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/tip/cloud_discovery/Makefile b/feeds/tip/cloud_discovery/Makefile index e6c73258e..c7b722400 100644 --- a/feeds/tip/cloud_discovery/Makefile +++ b/feeds/tip/cloud_discovery/Makefile @@ -12,6 +12,7 @@ define Package/cloud_discovery SECTION:=ucentral CATEGORY:=uCentral TITLE:=TIP cloud_discovery + DEPENDS:=+certificates endef Build/Compile= diff --git a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery index 7745d4f0b..83fef6662 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery +++ b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery @@ -144,7 +144,7 @@ function set_state(set) { function discover_dhcp() { let dhcp = readjsonfile('/tmp/cloud.json'); if (dhcp?.dhcp_server && dhcp?.dhcp_port) { - if (gateway_write({ server: dhcp.dhcp_server, port:dhcp.dhcp_port, valid: false, hostname_validate: !dhcp.no_validation })) { + if (gateway_write({ server: dhcp.dhcp_server, port:dhcp.dhcp_port, valid: false, hostname_validate: dhcp.no_validation ? 0 : 1 })) { ulog(LOG_INFO, `Discovered cloud via DHCP ${dhcp.dhcp_server}:${dhcp.dhcp_port}\n`); client_start(); set_state(VALIDATING);