do not attempt to get an interface if PROTO_FLAG_NODEV is set
[project/netifd.git] / proto / ppp.sh
1 #!/bin/sh
2
3 . netifd-proto.sh
4
5 ppp_init_config() {
6 proto_config_add_string "username"
7 proto_config_add_string "password"
8 proto_config_add_int "keepalive"
9 }
10
11 ppp_setup() {
12 echo "ppp_setup: $1"
13 }
14
15 ppp_teardown() {
16 return
17 }
18
19 ppp_init() {
20 return
21 }
22
23 add_protocol ppp
24
25 pppoe_init_config() {
26 ppp_init_config
27 }
28
29 pppoe_init() {
30 return
31 }
32
33 pppoe_setup() {
34 echo "pppoe_setup: $1"
35 }
36
37 pppoe_teardown() {
38 return
39 }
40
41 add_protocol pppoe