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>&- >&-
17 VPI
=$
(nvram get atm_vpi
)
18 VCI
=$
(nvram get atm_vci
)
19 USERNAME
=$
(nvram get ppp_username
)
20 PASSWORD
=$
(nvram get ppp_passwd
)
21 KEEPALIVE
=$
(nvram get ppp_redialperiod
)
22 KEEPALIVE
=${KEEPALIVE:+lcp-echo-interval 1 lcp-echo-failure $KEEPALIVE}
23 DEMAND
=$
(nvram get ppp_demand
)
26 DEMAND
=$
(nvram get ppp_idletime
)
27 DEMAND
=${IDLETIME:+demand idle $IDLETIME}
28 [ -f /etc
/ppp
/filter
] && DEMAND
=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
32 MTU
=$
(nvram get ppp_mtu
)
36 plugin pppoatm.so
${VPI:-8}.
${VCI:-35} \
42 password
"$PASSWORD" \