summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-06-05 11:24:08 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-11 13:02:52 +0300
commit309230b1cc7b01332f7a5f8aab3f330d09ee42a1 (patch)
tree4c0e87bc8c0f485901bb92bf1a0bdfd09dbb4b72 /src/service.c
parent3f7db3a10c015cfb9a82a303dba65e716bd07250 (diff)
downloadconnman-309230b1cc7b01332f7a5f8aab3f330d09ee42a1.tar.gz
connman-309230b1cc7b01332f7a5f8aab3f330d09ee42a1.tar.bz2
connman-309230b1cc7b01332f7a5f8aab3f330d09ee42a1.zip
service: Save provisioned config information
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index c9ee004c..8f9db427 100644
--- a/src/service.c
+++ b/src/service.c
@@ -678,6 +678,15 @@ static int service_save(struct connman_service *service)
g_key_file_set_boolean(keyfile, service->identifier, "Hidden",
TRUE);
+ if (service->config_file != NULL && strlen(service->config_file) > 0)
+ g_key_file_set_string(keyfile, service->identifier,
+ "Config.file", service->config_file);
+
+ if (service->config_entry != NULL &&
+ strlen(service->config_entry) > 0)
+ g_key_file_set_string(keyfile, service->identifier,
+ "Config.ident", service->config_entry);
+
done:
__connman_storage_save_service(keyfile, service->identifier);