diff options
author | John Crispin <blogic@openwrt.org> | 2014-02-18 13:33:56 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-02-18 13:33:56 +0000 |
commit | 4aff5a4e3df635e83decd87fd44c88a4a5bc30a2 (patch) | |
tree | 6731ff31a9368e2646bd5ebad49b3e962e49636b /package/network/services/ppp/files/ppp.sh | |
parent | 47e0e9ed2f0e0b1d14ef64b8d75e3b19d3a14735 (diff) | |
download | master-187ad058-4aff5a4e3df635e83decd87fd44c88a4a5bc30a2.tar.gz master-187ad058-4aff5a4e3df635e83decd87fd44c88a4a5bc30a2.tar.bz2 master-187ad058-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/services/ppp/files/ppp.sh')
-rwxr-xr-x | package/network/services/ppp/files/ppp.sh | 20 |
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() { |