Changeset 21903


Ignore:
Timestamp:
2010-06-26T20:11:04+02:00 (6 years ago)
Author:
jow
Message:

[package] ppp: interpret "demand" option as timeout in seconds (#7517)

Location:
trunk/package/ppp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/Makefile

    r21556 r21903  
    1111PKG_NAME:=ppp 
    1212PKG_VERSION:=2.4.4 
    13 PKG_RELEASE:=7 
     13PKG_RELEASE:=8 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/ppp/files/ppp.sh

    r21392 r21903  
    9393 
    9494        local demand 
    95         config_get_bool demand "$cfg" demand 0 
     95        config_get demand "$cfg" demand 0 
    9696 
    9797        local demandargs 
    98         [ "$demand" -eq 1 ] && { 
    99                 demandargs="precompiled-active-filter /etc/ppp/filter demand idle" 
     98        [ "$demand" -gt 0 ] && { 
     99                demandargs="precompiled-active-filter /etc/ppp/filter demand idle $demand" 
    100100                [ "$has_dns" -eq 0 ] && add_dns "$cfg" 1.1.1.1 
    101101        } || { 
Note: See TracChangeset for help on using the changeset viewer.