From 4f63912d29ee3191f40c00d7508fb018816ef7f3 Mon Sep 17 00:00:00 2001 From: "hwajeong.son" Date: Mon, 1 Oct 2018 19:56:07 +0900 Subject: [PATCH] Change the path to manage config and flag files for setup-adaptor 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input_file.c b/src/input_file.c index 83c19d7..a3465c1 100755 --- a/src/input_file.c +++ b/src/input_file.c @@ -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) { -- 2.34.1