mirror of https://github.com/hak5/openwrt.git
parent
b2515858d9
commit
935372297a
|
@ -19,7 +19,7 @@ VCI=$(nvram get atm_vci)
|
||||||
USERNAME=$(nvram get ppp_username)
|
USERNAME=$(nvram get ppp_username)
|
||||||
PASSWORD=$(nvram get ppp_passwd)
|
PASSWORD=$(nvram get ppp_passwd)
|
||||||
KEEPALIVE=$(nvram get ppp_redialperiod)
|
KEEPALIVE=$(nvram get ppp_redialperiod)
|
||||||
KEEPALIVE=${KEEPALIVE:+lcp-echo-interval 10 lcp-echo-failure $KEEPALIVE}
|
KEEPALIVE=${KEEPALIVE:+lcp-echo-interval 1 lcp-echo-failure $KEEPALIVE}
|
||||||
DEMAND=$(nvram get ppp_demand)
|
DEMAND=$(nvram get ppp_demand)
|
||||||
case "$DEMAND" in
|
case "$DEMAND" in
|
||||||
on|1|enabled)
|
on|1|enabled)
|
||||||
|
|
|
@ -18,7 +18,7 @@ IFNAME=$(nvram get ${type}_device)
|
||||||
USERNAME=$(nvram get ppp_username)
|
USERNAME=$(nvram get ppp_username)
|
||||||
PASSWORD=$(nvram get ppp_passwd)
|
PASSWORD=$(nvram get ppp_passwd)
|
||||||
KEEPALIVE=$(nvram get ppp_redialperiod)
|
KEEPALIVE=$(nvram get ppp_redialperiod)
|
||||||
KEEPALIVE=${KEEPALIVE:+lcp-echo-interval 10 lcp-echo-failure $KEEPALIVE}
|
KEEPALIVE=${KEEPALIVE:+lcp-echo-interval 1 lcp-echo-failure $KEEPALIVE}
|
||||||
DEMAND=$(nvram get ppp_demand)
|
DEMAND=$(nvram get ppp_demand)
|
||||||
case "$DEMAND" in
|
case "$DEMAND" in
|
||||||
on|1|enabled)
|
on|1|enabled)
|
||||||
|
|
Loading…
Reference in New Issue