aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-02-18 13:33:56 +0000
committerJohn Crispin <blogic@openwrt.org>2014-02-18 13:33:56 +0000
commit4aff5a4e3df635e83decd87fd44c88a4a5bc30a2 (patch)
tree6731ff31a9368e2646bd5ebad49b3e962e49636b /package/network
parent47e0e9ed2f0e0b1d14ef64b8d75e3b19d3a14735 (diff)
downloadupstream-4aff5a4e3df635e83decd87fd44c88a4a5bc30a2.tar.gz
upstream-4aff5a4e3df635e83decd87fd44c88a4a5bc30a2.tar.bz2
upstream-4aff5a4e3df635e83decd87fd44c88a4a5bc30a2.zip
ppp: add validation rules to proto handler
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39619 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-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() {