From: "Dmitry V. Levin" <ldv@fandra.org> To: devel@linux.iplabs.ru Subject: [devel] Re: [devel] Правильная работа pppd с ядрами 2.2 & 2.4 Date: Sat, 24 Feb 2001 07:07:48 +0300 Message-ID: <20010224070748.A1505@LDV.fandra.org> (raw) In-Reply-To: <01022406422002.01164@localhost.localdomain>; from goldhead@linux.ru.net on Sat, Feb 24, 2001 at 06:42:20AM +0300 [-- Attachment #1: Type: text/plain, Size: 2115 bytes --] On Sat, Feb 24, 2001 at 06:42:20AM +0300, Konstantin Volckov wrote: > > > Для того, чтобы pppd работал как в 2.2, так и в 2.4, необходимо добаить в > > > /etc/modules.conf следующие строки: > > > > > > ---cut--- > > > if `/bin/uname -r |/bin/cut -d- -f1 |/bin/cut -d. -f2` == 2 > > > alias char-major-108 off > > > alias tty-ldisc-3 ppp > > > else > > > alias char-major-108 ppp_generic > > > alias tty-ldisc-3 ppp_async > > > endif > > > ---cut--- > > > > > > Они немного отличаются от того варианта. который Дмитрий посылал в этот > > > список. > > > > Я уже поместил в /etc/modules.conf, устанавливаемый по умолчанию, > > alias tty-ldisc-3 ppp_async > > if `/bin/uname -r |/bin/cut -d- -f1 |/bin/cut -d. -f2` < 3 > > alias ppp_generic off > > alias ppp_async ppp > > fi > > > > строка > > alias char-major-108 ppp_generic > > не нужна, ибо прошита в modutils. > > > > С ядром 2.2 работает, с 2.4 тоже должно работать. > > > > Есть ли смысл это менять? > > Есть, т.к. с ядром 2.4 эта версия не работает. Кроме того, строка У меня нет ядра 2.4, но тем не менее эта версия работает, :) ибо получена из исходной путем применения эквивалентных преобразований. Вот еще один (эквивалентный) вариант: if `/bin/uname -r |/bin/cut -d- -f1 |/bin/cut -d. -f2` < 3 alias ppp_generic off else alias tty-ldisc-3 ppp_async endif > alias char-major-108 ppp_generic > все-таки нужна, т.к. ядро 2.4 без нее не работает. Ее разумнее прошить в modutils, что я и сделал в modutils-2.4.2-ipl2mdk. Именно поэтому она и не нужна в /etc/modules.conf. Для справки: сейчас в modutils-2.4.2-ipl2mdk/util/alias.h прописано: alias char-major-108 ppp_generic alias tty-ldisc-3 ppp Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2001-02-24 4:07 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-02-23 3:17 [devel] ðÒÁ×ÉÌØÎÁÑ ÒÁÂÏÔÁ pppd Ó ÑÄÒÁÍÉ " Konstantin Volckov 2001-02-23 3:56 ` [devel] Re: [devel] Правильная работа pppd с ядрами " Dmitry V. Levin 2001-02-24 3:42 ` [devel] Re: [devel] ðÒÁ×ÉÌØÎÁÑ ÒÁÂÏÔÁ pppd Ó ÑÄÒÁÍÉ " Konstantin Volckov 2001-02-24 4:07 ` Dmitry V. Levin [this message] 2001-02-28 2:03 ` [devel] Re: [devel] Re: [devel] Правильная работа pppd с ядрами " Dmitry V. Levin
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=20010224070748.A1505@LDV.fandra.org \ --to=ldv@fandra.org \ --cc=devel@linux.iplabs.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 Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git