add support for launching a long running command from a proto-shell handler that...
[project/netifd.git] / dummy / proto / ppp.sh
index 9a35fc9..13c4ebb 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 . ../netifd-proto.sh
+init_proto "$@"
 
 ppp_init_config() {
        proto_config_add_string "username"
@@ -35,6 +36,10 @@ 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"
+       proto_run_command sleep 10
 }
 
 pppoe_teardown() {