ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Andrey Rahmatullin <wrar-alt@mail.ru>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Subject: Re: [d-kernel] ltmodem
Date: Sun, 31 Aug 2003 19:15:25 +0600
Message-ID: <20030831191525.4431e104.wrar-alt@mail.ru> (raw)
In-Reply-To: <3F4F3483.9070406@altlinux.com>

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

Здравствуйте, Anton Farygin.
Вы писали:

> >>>>В kudzu нужен патч по аналогии с pctel и другими модемами.

> Патч для kudzu, что бы симлинк строился автоматом при обнаружении 
> устройства и строки в /etc/modules.conf прописывались.

Такой сойдет? См. аттач.

Кстати, в pcitable предлагаю обозвать драйвер lt_serial.

[-- Attachment #2: kudzu-1.1.13-ltmodem-alt.patch --]
[-- Type: text/plain, Size: 776 bytes --]

diff -urN kudzu-1.1.13.orig/hwconf.c kudzu-1.1.13/hwconf.c
--- kudzu-1.1.13.orig/hwconf.c	2003-08-30 21:55:49 +0600
+++ kudzu-1.1.13/hwconf.c	2003-08-30 21:55:34 +0600
@@ -1118,6 +1118,21 @@
  			}
  			dev->device = strdup("ttyPCT");
  			makeLink(dev,"modem");
+		} else if (!strncmp(dev->driver,"lt",2)) {
+ 			cf = readConfModules("/etc/modules.conf");
+ 			if (!cf)
+ 			  cf = newConfModules();
+ 			cf->madebackup = madebak;
+ 			if (
+ 			    isAliased(cf,"char-major-62",dev->driver)==-1
+ 			    ) {
+ 				addAlias(cf,"char-major-62",dev->driver,CM_REPLACE);
+ 
+ 				writeConfModules(cf,"/etc/modules.conf");
+ 				madebak = cf->madebackup;
+ 			}
+ 			dev->device = strdup("ttyLT0");
+ 			makeLink(dev,"modem");
   		} else {
  		    makeLink(dev,"modem");
  		}


  parent reply	other threads:[~2003-08-31 13:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-26 10:58 Andrey Rahmatullin
2003-08-26 11:29 ` Anton Farygin
2003-08-26 12:13   ` Andrey Rahmatullin
2003-08-26 12:42     ` Anton Farygin
2003-08-28 17:10       ` Andrey Rahmatullin
2003-08-29 11:09         ` Anton Farygin
2003-08-29 12:48           ` Andrey Rahmatullin
2003-08-31 13:15           ` Andrey Rahmatullin [this message]
2003-09-08  8:48 ` Andrey Rahmatullin
2003-09-08 10:39   ` Michael Shigorin
2003-09-08 16:21     ` Andrey Rahmatullin
2003-09-09 13:39       ` Anton Farygin

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=20030831191525.4431e104.wrar-alt@mail.ru \
    --to=wrar-alt@mail.ru \
    --cc=devel-kernel@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 kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git