linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Serial uart detection script for udev
Date: Thu, 11 May 2006 10:00:35 +0000	[thread overview]
Message-ID: <20060511100035.GD21601@vrfy.org> (raw)
In-Reply-To: <1147340442.12646.64.camel@stheno.ner.dy.fi>

On Thu, May 11, 2006 at 12:40:42PM +0300, Ilkka Tuohela wrote:
> 
> Attached is a small script to find out UART for a serial device from
> udev rules. I have installed the script to /lib/udev/serial_uart. It
> would be nice to get this script to standard udev distribution as well.

There are no "standard" rules today in the udev tarball, only examples
copied from the distros. It's up to the distro maintainer to pick these
up if they want and it will show up with the next round of copying from
the package to the examples in the udev tree.

> I think it would be actually better that UART for a serial port would be
> available directly as SYSFS attribute, but this system works as well.

This should be exported in sysfs, yes. Reading such stuff from /proc
for new stuff, should be avoided these days. Care to give it a try to
export this in sysfs?

And your script writes to /tmp, which it shouldn't.

Thanks,
Kay


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  reply	other threads:[~2006-05-11 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-11  9:40 Serial uart detection script for udev Ilkka Tuohela
2006-05-11 10:00 ` Kay Sievers [this message]
2006-05-11 12:11 ` Ilkka Tuohela

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=20060511100035.GD21601@vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).