summaryrefslogtreecommitdiffhomepage
path: root/dummy/proto
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-10 16:30:42 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-10 16:30:47 +0200
commit3085170188cc5bf04f4cfb6f07c292e06d2b40a8 (patch)
treedddf97d12a9e956a5868f0c8016b9908462884ee /dummy/proto
parentbcae80898d18bd8640efae10c3f3dff93c1be3d0 (diff)
proto-shell: add a library function for sending protocol handler updates
Diffstat (limited to 'dummy/proto')
-rwxr-xr-xdummy/proto/ppp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
index 5078833..adce2ca 100755
--- a/dummy/proto/ppp.sh
+++ b/dummy/proto/ppp.sh
@@ -36,6 +36,9 @@ pppoe_setup() {
json_get_var username username
json_get_var password password
echo "pppoe_setup($1, $2), username=$username, password=$password"
+ proto_init_update ppp0 1
+ proto_add_ipv4_address "192.168.2.1" 32
+ proto_send_update "$1"
}
pppoe_teardown() {