7 proto_config_add_string "username"
8 proto_config_add_string "password"
9 proto_config_add_int "keepalive"
13 echo "ppp_setup($1): $2"
39 json_get_var username username
40 json_get_var password password
41 echo "pppoe_setup($interface, $device), username=$username, password=$password"
42 proto_init_update ppp0 1
43 proto_add_ipv4_address "192.168.2.1" 32
44 proto_add_dns_server "192.168.2.2"
45 proto_send_update "$interface"
46 proto_run_command "$interface" sleep 10