add "Architecture" field to opkg status file (closes: #3901)
[openwrt.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 encaps "$config" encaps
18 case "$encaps" in
19 1|vc) ENCAPS="vc-encaps" ;;
20 *) ENCAPS="llc-encaps" ;;
21 esac
22
23 config_get mtu "$cfg" mtu
24 mtu=${mtu:-1500}
25 start_pppd "$config" \
26 plugin pppoatm.so ${vpi:-8}.${vci:-35} ${ENCAPS} \
27 mtu $mtu mru $mtu
28 }
This page took 0.044083 seconds and 5 git commands to generate.