[kernel] refreshed layer7 patches for 2.6.26.8, 2.6.27.21, 2.6.28.9 and 2.6.29.1
[openwrt.git] / package / ppp / files / pppoe.sh
1 scan_pppoe() {
2 scan_ppp "$@"
3 }
4
5 setup_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 # make sure the network state references the correct ifname
14 scan_ppp "$config"
15 config_get ifname "$config" ifname
16 set_interface_ifname "$config" "$ifname"
17
18 config_get mtu "$config" mtu
19 mtu=${mtu:-1492}
20 start_pppd "$config" \
21 plugin rp-pppoe.so \
22 mtu $mtu mru $mtu \
23 "nic-$iface"
24 }
This page took 0.067493 seconds and 5 git commands to generate.