diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-29 10:07:08 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-29 10:07:08 +0000 |
commit | 95738d97a9ee2773a672b6a408651b4c58dc27e7 (patch) | |
tree | d081f5a734ed955e28684e677913568a3acc43c4 /package | |
parent | c965569d21df56e7ee402b0bb53b563126beedf5 (diff) | |
download | mtk-20170518-95738d97a9ee2773a672b6a408651b4c58dc27e7.zip mtk-20170518-95738d97a9ee2773a672b6a408651b4c58dc27e7.tar.gz mtk-20170518-95738d97a9ee2773a672b6a408651b4c58dc27e7.tar.bz2 |
ppp: introduce "authfail" option which specifies whether pppd should attempt to re-authenticate after a failed PAP/CHAP auth
SVN-Revision: 33291
Diffstat (limited to 'package')
-rwxr-xr-x | package/ppp/files/ppp.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 25345b2..7e9b8dd 100755 --- a/package/ppp/files/ppp.sh +++ b/package/ppp/files/ppp.sh @@ -19,6 +19,7 @@ ppp_generic_init_config() { proto_config_add_boolean "defaultroute" proto_config_add_boolean "peerdns" proto_config_add_boolean "ipv6" + proto_config_add_boolean "authfail" proto_config_add_int "mtu" } @@ -70,7 +71,10 @@ ppp_generic_teardown() { case "$ERROR" in 11|19) proto_notify_error "$interface" AUTH_FAILED - proto_block_restart "$interface" + json_get_var authfail authfail + if [ "${authfail:-0}" -gt 0 ]; then + proto_block_restart "$interface" + fi ;; 2) proto_notify_error "$interface" INVALID_OPTIONS |