Ignore:
Timestamp:
2010-05-24T18:28:46+02:00 (7 years ago)
Author:
jow
Message:

[package] pptp: add "buffering" uci option to enable --nobuffer if needed (#7080)

File:
1 edited

Legend:

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

    r21393 r21563  
    1515        local ifname 
    1616 
     17        local device 
    1718        config_get device "$config" device 
     19 
     20        local ipproto 
    1821        config_get ipproto "$config" ipproto 
     22 
     23        local server 
    1924        config_get server "$config" server 
     25 
     26        local buffering 
     27        config_get_bool buffering "$config" buffering 1 
     28        [ "$buffering" == 0 ] && buffering="--nobuffer" || buffering= 
    2029 
    2130        for module in slhc ppp_generic ppp_async ip_gre; do 
     
    3847        mtu=${mtu:-1452} 
    3948        start_pppd "$config" \ 
    40                 pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd" \ 
     49                pty "/usr/sbin/pptp $server --loglevel 0 --nolaunchpppd $buffering" \ 
    4150                file /etc/ppp/options.pptp \ 
    4251                mtu $mtu mru $mtu 
Note: See TracChangeset for help on using the changeset viewer.