2 [ $# = 0 ] && { echo " $0 <group>"; exit; }
4 .
/etc
/network.overrides
5 [ -e /etc
/config
/network
] && .
/etc
/config
/network
8 [ "$(nvram get ${type}_proto)" = "pppoa" ] ||
{
9 echo "$0: ${type}_proto isn't pppoa"
13 for module
in slhc ppp_generic pppoatm
; do
14 /sbin
/insmod
$module 2>&- >&-
18 VPI
=$
(nvram get atm_vpi
)
19 VCI
=$
(nvram get atm_vci
)
20 USERNAME
=$
(nvram get ppp_username
)
21 PASSWORD
=$
(nvram get ppp_passwd
)
22 REDIAL
=$
(nvram get ppp_redialperiod
)
23 REDIAL
=${REDIAL:+lcp-echo-interval $REDIAL}
24 IDLETIME
=$
(nvram get ppp_idletime
)
25 IDLETIME
=${IDLETIME:+lcp-echo-failure $IDLETIME}
26 MTU
=$
(nvram get ppp_mtu
)
29 /usr
/sbin
/pppd nodetach \
30 plugin pppoatm.so
${VPI:-8}.
${VCI:-35} \
36 password
"$PASSWORD" \
41 # Read settings again (might have changed)
42 [ -e /etc
/config
/network
] && .
/etc
/config
/network