Changeset 2437


Ignore:
Timestamp:
2005-11-11T22:16:29+01:00 (11 years ago)
Author:
nbd
Message:

add new ppp timeout/redial stuff from [2433] to pptp init script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/pptp/files/ifup.pptp

    r2361 r2437  
    1818        USERNAME=$(nvram get ppp_username) 
    1919        PASSWORD=$(nvram get ppp_passwd) 
    20         REDIAL=$(nvram get ppp_redialperiod) 
    21         REDIAL=${REDIAL:+lcp-echo-interval $REDIAL} 
    22         IDLETIME=$(nvram get ppp_idletime) 
    23         IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME} 
     20        KEEPALIVE=$(nvram get ppp_redialperiod) 
     21        KEEPALIVE=${KEEPALIVE:+lcp-echo-interval 10 lcp-echo-failure $KEEPALIVE} 
     22        DEMAND=$(nvram get ppp_demand) 
     23        case "$DEMAND" in 
     24                on|1|enabled) 
     25                        DEMAND=$(nvram get ppp_idletime) 
     26                        DEMAND=${IDLETIME:+demand idle $IDLETIME} 
     27                ;; 
     28                *) DEMAND="";; 
     29        esac 
    2430        MTU=$(nvram get ppp_mtu) 
    2531        MTU=${MTU:-1452} 
     
    4551                mtu $MTU \ 
    4652                mru $MTU \ 
    47                 $IDLETIME \ 
    48                 $REDIAL 
     53                $DEMAND \ 
     54                $KEEPALIVE 
    4955done & 
    5056 
Note: See TracChangeset for help on using the changeset viewer.