c64e809de389b6dad17b9f0dbad98b99dbfb5d51
2 config_set
"$1" device
"pppoa-$1"
5 coldplug_interface_pppoa
() {
6 setup_interface_pppoa x
"$1"
9 stop_interface_pppoa
() {
10 stop_interface_ppp
"$1"
13 setup_interface_pppoa
() {
17 config_get atmdev
"$config" atmdev
20 config_get vpi
"$config" vpi
23 config_get vci
"$config" vci
25 for module
in slhc ppp_generic pppoatm
; do
26 /sbin
/insmod
$module 2>&- >&-
30 config_get encaps
"$config" encaps
33 1|vc
) encaps
="vc-encaps" ;;
34 *) encaps
="llc-encaps" ;;
38 config_get mtu
"$config" mtu
40 start_pppd
"$config" \
41 plugin pppoatm.so
${atmdev:+$atmdev.}${vpi:-8}.${vci:-35} \
42 ${encaps} ${mtu:+mtu $mtu mru $mtu}
This page took 0.038771 seconds and 3 git commands to generate.