mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 20:22:27 +02:00
[package] ppp: introduce "authfail" option which specifies whether pppd should attempt to re-authenticate after a failed PAP/CHAP auth
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33291 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
008b73b3ce
commit
23dada0898
@ -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
|
||||
json_get_var authfail authfail
|
||||
if [ "${authfail:-0}" -gt 0 ]; then
|
||||
proto_block_restart "$interface"
|
||||
fi
|
||||
;;
|
||||
2)
|
||||
proto_notify_error "$interface" INVALID_OPTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user