cloud_discovery: Add 'sync' after file generation in Cloud discovery process

Fixes: WIFI-14906
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
This commit is contained in:
Tanya Singh
2025-07-25 17:39:37 +08:00
committed by John Crispin
parent c8bffdc250
commit 5306f7db27
2 changed files with 2 additions and 0 deletions

View File

@@ -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
}

View File

@@ -91,6 +91,7 @@ function gateway_write(data) {
}
if (changed)
fs.writefile('/etc/ucentral/gateway.json', new);
system('sync');
return changed;
}