technology: Create the settings file in init
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 27 Apr 2012 13:01:52 +0000 (16:01 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Apr 2012 13:14:16 +0000 (15:14 +0200)
We save offline mode status in init so that settings
file gets created if it was missing.

src/technology.c

index 9892e2b..c52c910 100644 (file)
@@ -1355,6 +1355,9 @@ int __connman_technology_init(void)
 
        global_offlinemode = connman_technology_load_offlinemode();
 
+       /* This will create settings file if it is missing */
+       connman_technology_save_offlinemode();
+
        return 0;
 }