--- /dev/null
+../../proto/netifd-proto.sh
\ No newline at end of file
--- /dev/null
+#!/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
#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"
+++ /dev/null
-#!/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