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>&- >&-
18 IFNAME
=$
(nvram get pppoe_ifname
)
19 USERNAME
=$
(nvram get ppp_username
)
20 PASSWORD
=$
(nvram get ppp_passwd
)
21 REDIAL
=$
(nvram get ppp_redialperiod
)
22 REDIAL
=${REDIAL:+lcp-echo-interval $REDIAL}
23 IDLETIME
=$
(nvram get ppp_idletime
)
24 IDLETIME
=${IDLETIME:+lcp-echo-failure $IDLETIME}
25 MTU
=$
(nvram get ppp_mtu
)
29 /usr
/sbin
/pppd nodetach \
36 password
"$PASSWORD" \
42 # Read settings again (might have changed)
43 [ -e /etc
/config
/network
] && .
/etc
/config
/network