summaryrefslogtreecommitdiff
path: root/src/storage.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-05 21:47:21 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-05 21:47:21 +0100
commitfca9b70ed3be7b479c5949bf001d0a071802fca2 (patch)
tree533446063385d24f5e891e86a46f32b23bb00c2a /src/storage.c
parentf7afbae29f9cb5a933890e12c16771de5bfd642f (diff)
downloadconnman-fca9b70ed3be7b479c5949bf001d0a071802fca2.tar.gz
connman-fca9b70ed3be7b479c5949bf001d0a071802fca2.tar.bz2
connman-fca9b70ed3be7b479c5949bf001d0a071802fca2.zip
Store the policy setting
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage.c b/src/storage.c
index 5e390415..1aeda881 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -103,6 +103,10 @@ static void do_update(GKeyFile *keyfile, struct connman_element *element)
g_key_file_set_string(keyfile, element->path, "Name", element->name);
+ value = __connman_element_policy2string(element->policy);
+ if (value != NULL)
+ g_key_file_set_string(keyfile, element->path, "Policy", value);
+
g_key_file_set_boolean(keyfile, element->path, "Enabled",
element->enabled);