Change the path to manage config and flag files for setup-adaptor
authorhwajeong.son <hwajeong.son@samsung.com>
Mon, 1 Oct 2018 10:56:07 +0000 (19:56 +0900)
committerhwajeong.son <hwajeong.son@samsung.com>
Mon, 1 Oct 2018 10:56:07 +0000 (19:56 +0900)
from /etc/setup-adaptor -> /opt/etc/setup-adaptor
the file will be written on running time therefore, it should be rw area

src/input_file.c

index 83c19d7c923baf33ffc3b0ed75911e7bf30e4e2c..a3465c16000a2c2d9ca992c1d09621c5a071c0de 100755 (executable)
@@ -27,8 +27,8 @@
 #include "sa_types.h"
 #include "input_file.h"
 
-#define CONFIG_FILE "/etc/setup-adaptor/config.json"
-#define CONFIG_FOLDER "/etc/setup-adaptor"
+#define CONFIG_FILE "/opt/etc/setup-adaptor/config.json"
+#define CONFIG_FOLDER "/opt/etc/setup-adaptor"
 #define CONFIG_NAME "config.json"
 #define EVENT_NAME_MAX 256
 #define EVENT_SIZE     (sizeof(struct inotify_event))
@@ -647,9 +647,9 @@ void sa_inputfile_release_resource(sa_config_s * config)
        }
 }
 
-#define FLAG_FILE_SYSTEM "/etc/setup-adaptor/system_executed"
-#define FLAG_FILE_ETH "/etc/setup-adaptor/ethernet_executed"
-#define FLAG_FILE_WIFI "/etc/setup-adaptor/wifi_executed"
+#define FLAG_FILE_SYSTEM "/opt/etc/setup-adaptor/system_executed"
+#define FLAG_FILE_ETH "/opt/etc/setup-adaptor/ethernet_executed"
+#define FLAG_FILE_WIFI "/opt/etc/setup-adaptor/wifi_executed"
 
 void sa_inputfile_remove(void)
 {