summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xexamples/hotplug-cmd (renamed from scripts/hotplug-cmd)0
-rwxr-xr-xexamples/proto/ppp.sh (renamed from dummy/proto/ppp.sh)3
-rwxr-xr-xexamples/proto/pptp.sh (renamed from dummy/proto/pptp.sh)3
-rw-r--r--netifd.h4
-rwxr-xr-xscripts/netifd-proto.sh (renamed from dummy/netifd-proto.sh)0
5 files changed, 5 insertions, 5 deletions
diff --git a/scripts/hotplug-cmd b/examples/hotplug-cmd
index 2488a77..2488a77 100755
--- a/scripts/hotplug-cmd
+++ b/examples/hotplug-cmd
diff --git a/dummy/proto/ppp.sh b/examples/proto/ppp.sh
index c710bf2..f0d0ca3 100755
--- a/dummy/proto/ppp.sh
+++ b/examples/proto/ppp.sh
@@ -1,6 +1,7 @@
#!/bin/sh
+DUMMY=1
+. ../../scripts/netifd-proto.sh
-. ../netifd-proto.sh
init_proto "$@"
ppp_generic_init_config() {
diff --git a/dummy/proto/pptp.sh b/examples/proto/pptp.sh
index 914604f..5189e95 100755
--- a/dummy/proto/pptp.sh
+++ b/examples/proto/pptp.sh
@@ -1,6 +1,5 @@
#!/bin/sh
-
-. ../netifd-proto.sh
+. ../../scripts/netifd-proto.sh
init_proto "$@"
proto_pptp_init_config() {
diff --git a/netifd.h b/netifd.h
index befa2cc..1f64555 100644
--- a/netifd.h
+++ b/netifd.h
@@ -29,8 +29,8 @@
#include "utils.h"
#ifdef DUMMY_MODE
-#define DEFAULT_MAIN_PATH "./dummy"
-#define DEFAULT_HOTPLUG_PATH "./scripts/hotplug-cmd"
+#define DEFAULT_MAIN_PATH "./examples"
+#define DEFAULT_HOTPLUG_PATH "./examples/hotplug-cmd"
#define DEFAULT_RESOLV_CONF "./tmp/resolv.conf"
#else
#define DEFAULT_MAIN_PATH "/lib/netifd"
diff --git a/dummy/netifd-proto.sh b/scripts/netifd-proto.sh
index 6f20de9..6f20de9 100755
--- a/dummy/netifd-proto.sh
+++ b/scripts/netifd-proto.sh