aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-02-18 13:33:56 +0000
committerJohn Crispin <john@openwrt.org>2014-02-18 13:33:56 +0000
commitee5cb76c66a237bb82e38c94ba130eacb137ecdd (patch)
tree98be242193703cc724f811cb761ba819a922ceb3
parented72f7102cd82a4699df6de7f077cea29d531081 (diff)
downloadupstream-ee5cb76c66a237bb82e38c94ba130eacb137ecdd.tar.gz
upstream-ee5cb76c66a237bb82e38c94ba130eacb137ecdd.tar.bz2
upstream-ee5cb76c66a237bb82e38c94ba130eacb137ecdd.zip
ppp: add validation rules to proto handler
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39619
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh20
1 files changed, 10 insertions, 10 deletions
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() {