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