Gentoo Archives: gentoo-user

From: Momesso Andrea <momesso.andrea@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Wireless broadband modems - Working?
Date: Mon, 16 Mar 2009 07:48:10
Message-Id: 20090316084330.GA552@cubotto.ath.cx
In Reply to: Re: [gentoo-user] Wireless broadband modems - Working? by Neil Bothwick
1 On Sat, Mar 14, 2009 at 08:48:10PM +0000, Neil Bothwick wrote:
2 > On Sat, 14 Mar 2009 05:01:38 -0700, Grant wrote:
3 >
4 > > Any better way to manage the connection than 'wvdial' and ctrl+c ?
5 >
6 > I've used Kppp with simlar settings.
7 >
8
9 If you can do it with wvdial, it can also be done using gentoo net.* init
10 scirpts.
11
12 For example this is the wvdial.conf for my gprs phone:
13
14 [Dialer Defaults]
15 #Modem = /dev/ttyACM0
16 Modem = /dev/rfcomm0
17 Baud = 460800
18 Init1 = ATZ
19 Init2 = AT+CGDCONT=1,"ip","internet.wind","",0,0
20 ISDN = 0
21 Modem Type = Analog Modem
22 Carrier Check = no
23 Phone = *99***1#
24 Username = wind
25 Password = wind
26
27 And this is the equivalent part in my /etc/conf.d/net
28
29 config_ppp2=( "ppp" )
30 link_ppp2="/dev/rfcomm0"
31 username_ppp2='wind'
32 password_ppp2='wind'
33 pppd_ppp2=(
34 "noauth"
35 "defaultroute"
36 "usepeerdns"
37 )
38
39 phone_number_ppp2=( "*99***1#" )
40
41 chat_ppp2="
42 ABORT '\nBUSY\r'
43 ABORT '\nERROR\r'
44 ABORT '\nNO ANSWER\r'
45 ABORT '\nNO CARRIER\r'
46 ABORT '\nNO DIALTONE\r'
47 ABORT '\nRINGING\r\n\r\nRINGING\r'
48 '' '\rAT'
49 TIMEOUT 12
50 OK ATZ
51 OK 'AT+cgdcont=1,\"IP\",\"internet.wind\"'
52 OK 'ATDT\T'
53 TIMEOUT '60'
54 CONNECT ''
55 TIMEOUT '5'
56 '~--' ''
57 "
58
59 So, instead of using wvdial I just run "/etc/init.d/net.ppp2 start" and
60 "/etc/init.d/net.ppp2 stop".
61
62 ---
63
64 TopperH
65 http://topperh.blogspot.com