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: prefix protocol callback functions with proto_
[project/netifd.git]
/
dummy
/
proto
/
ppp.sh
diff --git
a/dummy/proto/ppp.sh
b/dummy/proto/ppp.sh
index
fc918a5
..
bc7fd3c
100755
(executable)
--- a/
dummy/proto/ppp.sh
+++ b/
dummy/proto/ppp.sh
@@
-9,27
+9,27
@@
ppp_generic_init_config() {
proto_config_add_int "keepalive"
}
proto_config_add_int "keepalive"
}
-ppp_init_config() {
+p
roto_p
pp_init_config() {
no_device=1
available=1
ppp_generic_init_config
}
no_device=1
available=1
ppp_generic_init_config
}
-ppp_setup() {
+p
roto_p
pp_setup() {
echo "ppp_setup($1): $2"
}
echo "ppp_setup($1): $2"
}
-ppp_teardown() {
+p
roto_p
pp_teardown() {
return
}
add_protocol ppp
return
}
add_protocol ppp
-pppoe_init_config() {
+p
roto_p
ppoe_init_config() {
ppp_generic_init_config
}
ppp_generic_init_config
}
-pppoe_setup() {
+p
roto_p
ppoe_setup() {
local interface="$1"
local device="$2"
local interface="$1"
local device="$2"
@@
-43,7
+43,7
@@
pppoe_setup() {
proto_run_command "$interface" sleep 30
}
proto_run_command "$interface" sleep 30
}
-pppoe_teardown() {
+p
roto_p
ppoe_teardown() {
[ "$ERROR" = 9 ] && {
proto_notify_error "$interface" PROCESS_KILLED
proto_block_restart "$interface"
[ "$ERROR" = 9 ] && {
proto_notify_error "$interface" PROCESS_KILLED
proto_block_restart "$interface"