projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49a8c2c
)
use /lib/netifd as main path when dummy mode is disabled
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 21:47:11 +0000
(23:47 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 21:47:11 +0000
(23:47 +0200)
main.c
patch
|
blob
|
history
netifd.h
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 4757b79ed0b7096a5a8dae8c32a76b4b43cabed9..02dd1e51c308db7728b8bd7499044ccd5710d14d 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-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)
diff --git
a/netifd.h
b/netifd.h
index 926cab848dd5727b3db8b98aef73e1a27d20bc38..c80980fd1e93718797f6b9a6268e53fcf09cbf6e 100644
(file)
--- a/
netifd.h
+++ b/
netifd.h
@@
-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