ppp: add validation rules to proto handler
authorJohn Crispin <john@openwrt.org>
Tue, 18 Feb 2014 13:33:56 +0000 (13:33 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 18 Feb 2014 13:33:56 +0000 (13:33 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39619

package/network/services/ppp/files/ppp.sh

index 284d44cfed9842f560c0970f3c4dc4bf895f937f..882440900b7a02f196c4f64714f82621dbf1a952 100755 (executable)
@@ -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() {