2 [ $# = 0 ] && { echo " $0 <group>"; exit; }
4 .
/etc
/network.overrides
5 [ -e /etc
/config
/network
] && .
/etc
/config
/network
8 [ "$(nvram get ${type}_proto)" = "pppoe" ] ||
{
9 echo "$0: ${type}_proto isn't pppoe"
13 for module
in slhc ppp_generic pppox pppoe
; do
14 /sbin
/insmod
$module 2>&- >&-
17 IFNAME
=$
(nvram get
${type}_device
)
18 USERNAME
=$
(nvram get ppp_username
)
19 PASSWORD
=$
(nvram get ppp_passwd
)
20 KEEPALIVE
=$
(nvram get ppp_redialperiod
)
21 KEEPALIVE
=${KEEPALIVE:+lcp-echo-interval 10 lcp-echo-failure $KEEPALIVE}
22 DEMAND
=$
(nvram get ppp_demand
)
25 DEMAND
=$
(nvram get ppp_idletime
)
26 DEMAND
=${IDLETIME:+demand idle $IDLETIME}
30 MTU
=$
(nvram get ppp_mtu
)
42 password
"$PASSWORD" \