iup: sync before applying configs

This commit is contained in:
Sukru Senli 2017-03-08 11:57:43 +01:00
parent 4a2c9876f5
commit 87908befaf

View file

@ -63,6 +63,7 @@ reload ()
for packname in $pack
do
ubus call uci commit '{"config":"'$packname'"}'
sleep 1
done
}
@ -281,6 +282,7 @@ handle_Downloaded_file()
apply_usercfg
reboot=`uci -q get provisioning.configserver.reboot`
if [ "$reboot" != "on" ]; then
sync
reload $CONFILESLURP
fi
rm -rf $IUPTEMP