From: Aleksandr Fetininsky <sashurik@telecont.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Два модема
Date: Wed, 12 Nov 2003 14:17:11 +0300
Message-ID: <20031112111711.GA1672@localhost.localdomain> (raw)
In-Reply-To: <200311112240.44491.crazymik@online.ru>
On Tue, Nov 11, 2003 at 22:40:44 +0300, Mikhail Arkhipov wrote:
> Всем доброго времени суток.
>
> Заранее извиняюсь за тупой вопрос.
> Возникла маленькая проблема с работой в kppp с двумя модемами.
> Суть в том, что один из них курьер (жаба душит отказаться от него), а
> другой - мобильник. Каждый сидит на своем COM-порту и никому не мешает.
> Но для мобильника надо в строку инициализации (командах модема в закладках
> kppp) прописывать AT+CG..... В общем то, что курьер не переварит. Как сделать
> это автоматом, при выборе соединения в kppp? Похоже, что скрипт надо сделать
> и прописать в свойствах соединения, но что и как голова уже не соображает.
> Буду признателен даже за камни в мой огород. Постоянно вставлять/удалять
> строку в командах модема не очень удобно.
В качестве чернового варианта:
Для соединения через мобильник написать что-то вроде этого
#!/bin/bash
#
# mobile_string.sh
# Заменяем строку инициализации на нужную для мобильника
cd ~/.kde/share/config/
/bin/sed 's/InitString1=/InitString1=AT+CG..../' kppprc > kppprc_mobile
mv kppprc_mobile kppprc
Кинуть его в ~/bin. На вкладке "Выполнить" настроек соединения
прописать его выполнение в строке "Перед соединением".
Оригинальный kppprc соxранить под именем kppprc_orig.
Аналогично сделать для Курьера.
Можно еще создать два файла kppprc_mobile и kppprc_courier с
нужными строками инициализации и прописать иx копирование в
kppprc перед соединением на той же вкладке "Выполнить".
>
> С уважением, Михаил.
--
Удачи!
Александр
next prev parent reply other threads:[~2003-11-12 11:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-11 19:40 Mikhail Arkhipov
2003-11-12 11:17 ` Aleksandr Fetininsky [this message]
2003-11-12 20:19 ` Mikhail Arkhipov
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=20031112111711.GA1672@localhost.localdomain \
--to=sashurik@telecont.ru \
--cc=community@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git