diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-09 23:49:43 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-09 23:49:43 +0200 |
commit | c1db77f01848b4da256426383559a553547a81d5 (patch) | |
tree | 0cb085ac0801bd743be4170cb441a204f41d93e5 /dummy/proto | |
parent | 7c4108d49d3048d8c14e73d5f366a13ed814df8d (diff) |
move the main path to ./dummy to maintain the proper proto script implementations in ./proto
Diffstat (limited to 'dummy/proto')
l--------- | dummy/proto/netifd-proto.sh | 1 | ||||
-rwxr-xr-x | dummy/proto/ppp.sh | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dummy/proto/netifd-proto.sh b/dummy/proto/netifd-proto.sh new file mode 120000 index 0000000..b313293 --- /dev/null +++ b/dummy/proto/netifd-proto.sh @@ -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 index 0000000..8e8ceb2 --- /dev/null +++ b/dummy/proto/ppp.sh @@ -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 |