projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proto-shell: move all proto init code to a separate function
[project/netifd.git]
/
dummy
/
proto
/
ppp.sh
diff --git
a/dummy/proto/ppp.sh
b/dummy/proto/ppp.sh
index
cd57145
..
5078833
100755
(executable)
--- a/
dummy/proto/ppp.sh
+++ b/
dummy/proto/ppp.sh
@@
-1,6
+1,7
@@
#!/bin/sh
. ../netifd-proto.sh
#!/bin/sh
. ../netifd-proto.sh
+init_proto "$@"
ppp_init_config() {
proto_config_add_string "username"
ppp_init_config() {
proto_config_add_string "username"
@@
-32,7
+33,9
@@
pppoe_init() {
}
pppoe_setup() {
}
pppoe_setup() {
- echo "pppoe_setup($1, $3): $2"
+ json_get_var username username
+ json_get_var password password
+ echo "pppoe_setup($1, $2), username=$username, password=$password"
}
pppoe_teardown() {
}
pppoe_teardown() {