[LEDE-DEV] [PATCH 2/2] base-files: fix config storing on generation
Koen Vandeputte
koen.vandeputte at ncentric.com
Fri Sep 30 00:48:23 PDT 2016
The general "uci commit" does NOT store the generated sections.
Fix this for now by storing each part separately.
Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>
---
package/base-files/files/bin/config_generate | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index 80e5c9f..372e225 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -410,6 +410,8 @@ if [ ! -s /etc/config/network ]; then
json_get_keys keys switch
for key in $keys; do generate_switch $key; done
+
+ uci commit network
fi
if [ ! -s /etc/config/system ]; then
@@ -424,5 +426,7 @@ if [ ! -s /etc/config/system ]; then
json_get_keys keys led
for key in $keys; do generate_led $key; done
+
+ uci commit system
fi
uci commit
--
2.7.4
More information about the Lede-dev
mailing list