[adm5120] fix support for 2.6.38 kernel
[openwrt.git] / package / ppp / files.old / pppoe.sh
1 stop_interface_pppoe() {
2 stop_interface_ppp "$1"
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 local mtu
14 config_get mtu "$config" mtu 1492
15
16 local ac
17 config_get ac "$config" ac
18
19 local service
20 config_get service "$config" service
21
22 # NB: the first nic-* argument will be moved to the
23 # end of the argument list by start_pppd()
24 start_pppd "$config" \
25 "nic-$iface" \
26 plugin rp-pppoe.so \
27 ${ac:+rp_pppoe_ac "$ac"} \
28 ${service:+rp_pppoe_service "$service"} \
29 mtu $mtu mru $mtu
30 }
This page took 0.038258 seconds and 5 git commands to generate.