2 config_set
"$1" device
"pppoa-$1"
5 stop_interface_pppoa
() {
6 stop_interface_ppp
"$1"
9 setup_interface_pppoa
() {
13 config_get atmdev
"$config" atmdev
16 config_get vpi
"$config" vpi
19 config_get vci
"$config" vci
21 for module
in slhc ppp_generic pppoatm
; do
22 /sbin
/insmod
$module 2>&- >&-
26 config_get encaps
"$config" encaps
29 1|vc
) encaps
="vc-encaps" ;;
30 *) encaps
="llc-encaps" ;;
34 config_get mtu
"$config" mtu
36 start_pppd
"$config" \
37 plugin pppoatm.so
${atmdev:+$atmdev.}${vpi:-8}.${vci:-35} \
38 ${encaps} ${mtu:+mtu $mtu mru $mtu}
This page took 0.04915 seconds and 5 git commands to generate.