Ignore:
Timestamp:
2011-10-05T01:10:36+02:00 (5 years ago)
Author:
jow
Message:

[package] ppp: add workaround for ignored rp_pppoe_ac and rp_pppoe_service options by appending the nic-xxx argument last

File:
1 edited

Legend:

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

    r23088 r28364  
    1616start_pppd() { 
    1717        local cfg="$1"; shift 
     18 
     19        # Workaround for PPPoE service and AC name options, 
     20        # filter out the nic-* argument and append it as last option 
     21        local nic="" 
     22        case "$1" in 
     23                nic-*) nic="$1"; shift ;; 
     24        esac 
    1825 
    1926        local proto 
     
    111118                ${ipv6} \ 
    112119                ${pppd_options} \ 
    113                 nodetach 
     120                nodetach \ 
     121                ${nic} 
    114122 
    115123        lock -u "/var/lock/ppp-${link}" 
Note: See TracChangeset for help on using the changeset viewer.