summaryrefslogtreecommitdiffhomepage
path: root/dummy/proto/ppp.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-13 23:57:39 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-13 23:59:08 +0200
commit547d96cd6d1bdf3624711b08491ca7fce6b4b0a3 (patch)
tree569763eaec794193713fef8418fa9241760c52f9 /dummy/proto/ppp.sh
parent120881e1b8022a103c50ba0bf2899060d06ead70 (diff)
add proper parameters for protocol notify functions
Diffstat (limited to 'dummy/proto/ppp.sh')
-rwxr-xr-xdummy/proto/ppp.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
index e7b9839..8673b98 100755
--- a/dummy/proto/ppp.sh
+++ b/dummy/proto/ppp.sh
@@ -33,14 +33,17 @@ pppoe_init() {
}
pppoe_setup() {
+ local interface="$1"
+ local device="$2"
+
json_get_var username username
json_get_var password password
- echo "pppoe_setup($1, $2), username=$username, password=$password"
+ echo "pppoe_setup($interface, $device), username=$username, password=$password"
proto_init_update ppp0 1
proto_add_ipv4_address "192.168.2.1" 32
proto_add_dns_server "192.168.2.2"
- proto_send_update "$1"
- proto_run_command sleep 10
+ proto_send_update "$interface"
+ proto_run_command "$interface" sleep 10
}
pppoe_teardown() {