From 5306f7db2713b117f0e0bff4a38f033890beaa3a Mon Sep 17 00:00:00 2001 From: Tanya Singh Date: Fri, 25 Jul 2025 17:39:37 +0800 Subject: [PATCH] cloud_discovery: Add 'sync' after file generation in Cloud discovery process Fixes: WIFI-14906 Signed-off-by: Tanya Singh --- feeds/tip/certificates/files/etc/init.d/early_boot | 1 + feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery | 1 + 2 files changed, 2 insertions(+) diff --git a/feeds/tip/certificates/files/etc/init.d/early_boot b/feeds/tip/certificates/files/etc/init.d/early_boot index 636fb5f40..f5ea04c10 100755 --- a/feeds/tip/certificates/files/etc/init.d/early_boot +++ b/feeds/tip/certificates/files/etc/init.d/early_boot @@ -20,6 +20,7 @@ copy_certificates() { [ -z "$country" ] && country=US echo "options cfg80211 ieee80211_regdom="$country > /etc/modules.conf echo -n $country > /etc/ucentral/country + sync exit 0 } diff --git a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery index 3ff49cc86..a60c97478 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery +++ b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery @@ -91,6 +91,7 @@ function gateway_write(data) { } if (changed) fs.writefile('/etc/ucentral/gateway.json', new); + system('sync'); return changed; }