source: trunk/package/ppp/files/pppoe.sh @ 21283

Last change on this file since 21283 was 21283, checked in by jow, 6 years ago

[package] ppp:

  • patch pppd to support named interfaces (e.g. "pppoe-wan")
  • use named interfaces when bringing up 3g, pptp, ppp or pppoe connections
  • get rid of unit count logic
  • shutdown pppd when ifdown is invoked
  • bump package revision
  • Property svn:eol-style set to native
File size: 339 bytes
Line 
1stop_interface_pppoe() {
2        stop_interface_ppp "$1"
3}
4
5setup_interface_pppoe() {
6        local iface="$1"
7        local config="$2"
8       
9        for module in slhc ppp_generic pppox pppoe; do
10                /sbin/insmod $module 2>&- >&-
11        done
12
13        config_get mtu "$config" mtu
14        mtu=${mtu:-1492}
15        start_pppd "$config" \
16                plugin rp-pppoe.so \
17                mtu $mtu mru $mtu \
18                "nic-$iface"
19}
Note: See TracBrowser for help on using the repository browser.