mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
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:
committed by
John Crispin
parent
c8bffdc250
commit
5306f7db27
@@ -20,6 +20,7 @@ copy_certificates() {
|
|||||||
[ -z "$country" ] && country=US
|
[ -z "$country" ] && country=US
|
||||||
echo "options cfg80211 ieee80211_regdom="$country > /etc/modules.conf
|
echo "options cfg80211 ieee80211_regdom="$country > /etc/modules.conf
|
||||||
echo -n $country > /etc/ucentral/country
|
echo -n $country > /etc/ucentral/country
|
||||||
|
sync
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ function gateway_write(data) {
|
|||||||
}
|
}
|
||||||
if (changed)
|
if (changed)
|
||||||
fs.writefile('/etc/ucentral/gateway.json', new);
|
fs.writefile('/etc/ucentral/gateway.json', new);
|
||||||
|
system('sync');
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user