generic: rtl8366: rename vlanmc and vlan4k related structures an functions
[openwrt.git] / package / ppp / files / pppoa.sh
1 stop_interface_pppoa() {
2 stop_interface_ppp "$1"
3 }
4
5 setup_interface_pppoa() {
6 local iface="$1"
7 local config="$2"
8
9 local device
10 config_get device "$config" device
11
12 local vpi
13 config_get vpi "$config" vpi
14
15 local vci
16 config_get vci "$config" vci
17
18 for module in slhc ppp_generic pppoatm; do
19 /sbin/insmod $module 2>&- >&-
20 done
21
22 local encaps
23 config_get encaps "$config" encaps
24
25 case "$encaps" in
26 1|vc) encaps="vc-encaps" ;;
27 *) encaps="llc-encaps" ;;
28 esac
29
30 local mtu
31 config_get mtu "$config" mtu
32 mtu=${mtu:-1500}
33
34 start_pppd "$config" \
35 plugin pppoatm.so ${vpi:-8}.${vci:-35} ${encaps} \
36 mtu $mtu mru $mtu
37 }
This page took 0.049185 seconds and 5 git commands to generate.