diff options
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | netifd.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -11,7 +11,7 @@ #include "interface.h" unsigned int debug_mask = 0; -const char *main_path = "."; +const char *main_path = DEFAULT_MAIN_PATH; static char **global_argv; static void netifd_do_restart(struct uloop_timeout *timeout) @@ -14,8 +14,10 @@ #include "utils.h" #ifdef DUMMY_MODE +#define DEFAULT_MAIN_PATH "." #define DEFAULT_HOTPLUG_PATH "./scripts/hotplug-cmd" #else +#define DEFAULT_MAIN_PATH "/lib/netifd" #define DEFAULT_HOTPLUG_PATH "/sbin/hotplug-cmd" #endif |