Changeset 33291


Ignore:
Timestamp:
2012-08-29T12:07:08+02:00 (5 years ago)
Author:
jow
Message:

[package] ppp: introduce "authfail" option which specifies whether pppd should attempt to re-authenticate after a failed PAP/CHAP auth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/files/ppp.sh

    r32482 r33291  
    2020        proto_config_add_boolean "peerdns" 
    2121        proto_config_add_boolean "ipv6" 
     22        proto_config_add_boolean "authfail" 
    2223        proto_config_add_int "mtu" 
    2324} 
     
    7172                11|19) 
    7273                        proto_notify_error "$interface" AUTH_FAILED 
    73                         proto_block_restart "$interface" 
     74                        json_get_var authfail authfail 
     75                        if [ "${authfail:-0}" -gt 0 ]; then 
     76                                proto_block_restart "$interface" 
     77                        fi 
    7478                ;; 
    7579                2) 
Note: See TracChangeset for help on using the changeset viewer.