move the main path to ./dummy to maintain the proper proto script implementations...
authorFelix Fietkau <nbd@openwrt.org>
Sun, 9 Oct 2011 21:49:43 +0000 (23:49 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 9 Oct 2011 21:49:43 +0000 (23:49 +0200)
dummy/proto/netifd-proto.sh [new symlink]
dummy/proto/ppp.sh [new file with mode: 0755]
netifd.h
proto/ppp.sh [deleted file]

diff --git a/dummy/proto/netifd-proto.sh b/dummy/proto/netifd-proto.sh
new file mode 120000 (symlink)
index 0000000..b313293
--- /dev/null
@@ -0,0 +1 @@
+../../proto/netifd-proto.sh
\ No newline at end of file
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
new file mode 100755 (executable)
index 0000000..8e8ceb2
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+. netifd-proto.sh
+
+ppp_init_config() {
+       proto_config_add_string "username"
+       proto_config_add_string "password"
+       proto_config_add_int "keepalive"
+}
+
+ppp_setup() {
+       echo "ppp_setup($1): $2"
+}
+
+ppp_teardown() {
+       return
+}
+
+ppp_init() {
+       no_device=1
+       available=1
+}
+
+add_protocol ppp
+
+pppoe_init_config() {
+       ppp_init_config
+}
+
+pppoe_init() {
+       return
+}
+
+pppoe_setup() {
+       echo "pppoe_setup($1, $3): $2"
+}
+
+pppoe_teardown() {
+       return
+}
+
+add_protocol pppoe
index c80980f..aa04c51 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -14,7 +14,7 @@
 #include "utils.h"
 
 #ifdef DUMMY_MODE
-#define DEFAULT_MAIN_PATH      "."
+#define DEFAULT_MAIN_PATH      "./dummy"
 #define DEFAULT_HOTPLUG_PATH   "./scripts/hotplug-cmd"
 #else
 #define DEFAULT_MAIN_PATH      "/lib/netifd"
diff --git a/proto/ppp.sh b/proto/ppp.sh
deleted file mode 100755 (executable)
index 8e8ceb2..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-. netifd-proto.sh
-
-ppp_init_config() {
-       proto_config_add_string "username"
-       proto_config_add_string "password"
-       proto_config_add_int "keepalive"
-}
-
-ppp_setup() {
-       echo "ppp_setup($1): $2"
-}
-
-ppp_teardown() {
-       return
-}
-
-ppp_init() {
-       no_device=1
-       available=1
-}
-
-add_protocol ppp
-
-pppoe_init_config() {
-       ppp_init_config
-}
-
-pppoe_init() {
-       return
-}
-
-pppoe_setup() {
-       echo "pppoe_setup($1, $3): $2"
-}
-
-pppoe_teardown() {
-       return
-}
-
-add_protocol pppoe