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