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:
1c669b1
)
only override the uci conf dir in dummy mode
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 2 Oct 2011 16:38:58 +0000
(18:38 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 2 Oct 2011 16:38:58 +0000
(18:38 +0200)
CMakeLists.txt
patch
|
blob
|
history
config.c
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index de0c74b35829721d99d6bb6c10c420b9b07f29ef..8fb8ae15a5baf90ab00ccd5d41fcf070aa919998 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-22,6
+22,7
@@
IF("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
SET(SOURCES ${SOURCES} system-linux.c)
SET(LIBS ${LIBS} nl)
ELSE()
+ ADD_DEFINITIONS(-DDUMMY_MODE=1)
SET(SOURCES ${SOURCES} system-dummy.c)
ENDIF()
diff --git
a/config.c
b/config.c
index 81cbd28180f42c817c139c2044d5425612ec7dcc..8705c16accaa799dcd32e91bc3734838df89e2d5 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-215,7
+215,9
@@
config_init_interfaces(const char *name)
ctx = uci_alloc_context();
uci_ctx = ctx;
+#ifdef DUMMY_MODE
uci_set_confdir(ctx, "./config");
+#endif
if (uci_load(ctx, "network", &p)) {
fprintf(stderr, "Failed to load network config\n");