pass ifname to the shell proto handler
[project/netifd.git] / proto / ppp.sh
index 76df2f3..428096b 100755 (executable)
@@ -8,10 +8,19 @@ ppp_init_config() {
        proto_config_add_int "keepalive"
 }
 
-ppp_init() {
+ppp_setup() {
+       echo "ppp_setup: $1"
+}
+
+ppp_teardown() {
        return
 }
 
+ppp_init() {
+       no_device=1
+       available=1
+}
+
 add_protocol ppp
 
 pppoe_init_config() {
@@ -22,4 +31,12 @@ pppoe_init() {
        return
 }
 
+pppoe_setup() {
+       echo "pppoe_setup($2): $1"
+}
+
+pppoe_teardown() {
+       return
+}
+
 add_protocol pppoe