From: John Crispin Date: Tue, 18 Feb 2014 13:33:56 +0000 (+0000) Subject: ppp: add validation rules to proto handler X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ee5cb76c66a237bb82e38c94ba130eacb137ecdd;p=openwrt%2Fstaging%2Fynezz.git ppp: add validation rules to proto handler Signed-off-by: John Crispin SVN-Revision: 39619 --- diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh index 284d44cfed..882440900b 100755 --- a/package/network/services/ppp/files/ppp.sh +++ b/package/network/services/ppp/files/ppp.sh @@ -9,16 +9,16 @@ } ppp_generic_init_config() { - proto_config_add_string "username" - proto_config_add_string "password" - proto_config_add_string "keepalive" - proto_config_add_int "demand" - proto_config_add_string "pppd_options" - proto_config_add_string "connect" - proto_config_add_string "disconnect" - proto_config_add_boolean "ipv6" - proto_config_add_boolean "authfail" - proto_config_add_int "mtu" + proto_config_add_string username + proto_config_add_string password + proto_config_add_string keepalive + proto_config_add_int demand + proto_config_add_string pppd_options + proto_config_add_string 'connect:file' + proto_config_add_string 'disconnect:file' + proto_config_add_boolean ipv6 + proto_config_add_boolean authfail + proto_config_add_int mtu } ppp_generic_setup() {