On Sat, Mar 14, 2009 at 08:48:10PM +0000, Neil Bothwick wrote:
> On Sat, 14 Mar 2009 05:01:38 -0700, Grant wrote:
> 
> > Any better way to manage the connection than 'wvdial' and ctrl+c ?
> 
> I've used Kppp with simlar settings.
> 

If you can do it with wvdial, it can also be done using gentoo net.* init
scirpts.

For example this is the wvdial.conf for my gprs phone:

[Dialer Defaults]
#Modem = /dev/ttyACM0
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = AT+CGDCONT=1,"ip","internet.wind","",0,0
ISDN = 0
Modem Type = Analog Modem
Carrier Check = no
Phone = *99***1#
Username = wind
Password = wind

And this is the equivalent part in my /etc/conf.d/net

config_ppp2=( "ppp" )
link_ppp2="/dev/rfcomm0"
username_ppp2='wind'
password_ppp2='wind'
pppd_ppp2=(
"noauth"
"defaultroute"
"usepeerdns"
)

phone_number_ppp2=( "*99***1#" )

chat_ppp2="
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' '\rAT'
TIMEOUT 12
OK ATZ
OK 'AT+cgdcont=1,\"IP\",\"internet.wind\"'
OK 'ATDT\T'
TIMEOUT '60'
CONNECT ''
TIMEOUT '5'
'~--' ''
"

So, instead of using wvdial I just run "/etc/init.d/net.ppp2 start" and
"/etc/init.d/net.ppp2 stop".

---

TopperH
http://topperh.blogspot.com

Attachment: pgpKE5zzwmkAF.pgp
Description: PGP signature

Reply via email to