From: "Alexey I. Froloff" <raorn@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] MTS GPRS через bluetooth
Date: Wed, 13 May 2009 16:40:58 +0400
Message-ID: <20090513124058.GU20646@altlinux.org> (raw)
In-Reply-To: <E1M4BaX-0006nX-00.a_mdl-mail-ru@f247.mail.ru>
[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]
* Denis Medvedev <a_mdl@> [090513 14:24]:
> Потребовалось на десктопах (4.2, 5.0 или сизиф) cделать такую вещь:
> подключение ноутбука к Internet через MTS GPRS через bluetooth.
Давно не проверял, не знаю как оно будет жить с новым блюзом:
==> /etc/net/ifaces/ppp1/ifdown-post <==
#!/bin/sh
rfcomm release /dev/rfcomm1
==> /etc/net/ifaces/ppp1/ifup-pre <==
#!/bin/sh
rfcomm bind /dev/rfcomm1
==> /etc/net/ifaces/ppp1/options <==
TYPE=ppp
ONBOOT=no
PPPTYPE=dialup
RESTORE_DEFAULTROUTE=yes
==> /etc/net/ifaces/ppp1/pppconnect <==
TIMEOUT 5
#ECHO ON
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
SAY "Press CTRL-C to close the connection at any stage!"
SAY "\nSetting up...\n"
OK ATE1
SAY "\ndefining PDP context...\n"
OK 'AT+CGDCONT=1,"IP","internet.mts.ru"'
OK ATD*99***1#
TIMEOUT 22
SAY "\nwaiting for connect...\n"
CONNECT ""
SAY "\nConnected."
SAY "\nIf the following ppp negotiations fail,\n"
SAY "try restarting the phone.\n"
==> /etc/net/ifaces/ppp1/pppoptions <==
lcp-echo-failure 0
lcp-echo-interval 0
/dev/rfcomm1
debug
noipdefault
ipcp-accept-local
defaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
nodeflate
noauth
user "mts"
password "mts"
receive-all
nolog
==> /etc/bluetooth/rfcomm.conf <==
rfcomm1 {
bind no;
device 00:1C:A4:xx:xx:xx;
channel 2;
}
--
Regards,
Sir Raorn.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-05-13 12:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-13 10:21 Denis Medvedev
2009-05-13 10:35 ` Александр
2009-05-13 10:51 ` Denis Medvedev
2009-05-13 12:00 ` Victor
2009-05-14 9:39 ` Andrey Rahmatullin
2009-05-13 12:14 ` "Купраш А.А."
2009-05-13 12:40 ` Alexey I. Froloff [this message]
2009-05-15 13:52 ` Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090513124058.GU20646@altlinux.org \
--to=raorn@altlinux.org \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git