Changeset 23530


Ignore:
Timestamp:
2010-10-19T08:42:37+02:00 (7 years ago)
Author:
jow
Message:

[package] ppp:

  • implement coldplugging for pppoa interfaces
  • honour device option to select the DSL adapter
  • don't set any default mtu, rely on pppd to negotiate it
  • bump pkg revision
Location:
trunk/package/ppp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/Makefile

    r23259 r23530  
    1111PKG_NAME:=ppp 
    1212PKG_VERSION:=2.4.4 
    13 PKG_RELEASE:=11 
     13PKG_RELEASE:=12 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/ppp/files/pppoa.sh

    r21287 r23530  
     1coldplug_interface_pppoa() { 
     2        setup_interface_pppoa x "$1" 
     3} 
     4 
    15stop_interface_pppoa() { 
    26        stop_interface_ppp "$1" 
     
    48 
    59setup_interface_pppoa() { 
    6         local iface="$1" 
    710        local config="$2" 
    811 
     
    3033        local mtu 
    3134        config_get mtu "$config" mtu 
    32         mtu=${mtu:-1500} 
    3335 
    3436        start_pppd "$config" \ 
    35                 plugin pppoatm.so ${vpi:-8}.${vci:-35} ${encaps} \ 
    36                 mtu $mtu mru $mtu 
     37                plugin pppoatm.so ${device:+$device.}${vpi:-8}.${vci:-35} \ 
     38                ${encaps} ${mtu:+mtu $mtu mru $mtu} 
    3739} 
Note: See TracChangeset for help on using the changeset viewer.