base-files: uci-defaults: do config flush in one shot
authorRoman Yeryomin <roman@advem.lv>
Mon, 21 Oct 2019 21:10:20 +0000 (00:10 +0300)
committerJohn Crispin <john@phrozen.org>
Tue, 22 Oct 2019 09:39:28 +0000 (11:39 +0200)
commit940844e077d7d41bc94728f42b39a65854d38b87
treea7541f22e82806ad682c6e9366a5d423fdbe3d97
parentc0e7ec91a0927002942631bbc995b90f5f7dd7ed
base-files: uci-defaults: do config flush in one shot

Moving a file between tmpfs and other fs is neither
faster nor safer, thus no point in doing it in two steps.
Use new jshn option to write output directly to file.

Originally discussed here:
http://lists.openwrt.org/pipermail/openwrt-devel/2017-December/010127.html

Signed-off-by: Roman Yeryomin <roman@advem.lv>
package/base-files/files/lib/functions/uci-defaults.sh