summaryrefslogtreecommitdiffhomepage
path: root/dummy/proto/ppp.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-27 20:04:52 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-27 20:04:52 +0200
commit301cf1c6f2c2b155c476e1fb861eeaa19c533222 (patch)
tree414890762df465d8c1e7d3b6378d5fb1f94cfb72 /dummy/proto/ppp.sh
parent3c1a5bf324c8f2476239c4e49687ca252d3bf4c8 (diff)
proto-shell: prefix protocol callback functions with proto_
Diffstat (limited to 'dummy/proto/ppp.sh')
-rwxr-xr-xdummy/proto/ppp.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
index fc918a5..bc7fd3c 100755
--- a/dummy/proto/ppp.sh
+++ b/dummy/proto/ppp.sh
@@ -9,27 +9,27 @@ ppp_generic_init_config() {
proto_config_add_int "keepalive"
}
-ppp_init_config() {
+proto_ppp_init_config() {
no_device=1
available=1
ppp_generic_init_config
}
-ppp_setup() {
+proto_ppp_setup() {
echo "ppp_setup($1): $2"
}
-ppp_teardown() {
+proto_ppp_teardown() {
return
}
add_protocol ppp
-pppoe_init_config() {
+proto_pppoe_init_config() {
ppp_generic_init_config
}
-pppoe_setup() {
+proto_pppoe_setup() {
local interface="$1"
local device="$2"
@@ -43,7 +43,7 @@ pppoe_setup() {
proto_run_command "$interface" sleep 30
}
-pppoe_teardown() {
+proto_pppoe_teardown() {
[ "$ERROR" = 9 ] && {
proto_notify_error "$interface" PROCESS_KILLED
proto_block_restart "$interface"