Change mtu value for pppoa and pppoe (#945)
[openwrt/svn-archive/archive.git] / package / ppp / files / pppoa.sh
1 scan_pppoa() {
2 scan_ppp "$@"
3 }
4
5 setup_interface_pppoa() {
6 local iface="$1"
7 local config="$2"
8
9 config_get device "$config" device
10 config_get vpi "$config" vpi
11 config_get vci "$config" vci
12
13 for module in slhc ppp_generic pppoatm; do
14 /sbin/insmod $module 2>&- >&-
15 done
16
17 config_get mtu "$cfg" mtu
18 mtu=${mtu:-1500}
19 start_pppd "$config" \
20 plugin pppoatm.so ${vpi:-8}.${vci:-35} \
21 mtu $mtu mru $mtu
22 }