From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 11 May 2006 10:00:35 +0000 Subject: Re: Serial uart detection script for udev Message-Id: <20060511100035.GD21601@vrfy.org> List-Id: References: <1147340442.12646.64.camel@stheno.ner.dy.fi> In-Reply-To: <1147340442.12646.64.camel@stheno.ner.dy.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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&kid0709&bid&3057&dat1642 _______________________________________________ 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