From mboxrd@z Thu Jan 1 00:00:00 1970 From: sean Date: Mon, 10 Jul 2006 01:37:35 +0000 Subject: Re: [PATCH] Update writing udev rules documentation Message-Id: List-Id: References: <4481B0C5.80301@gentoo.org> In-Reply-To: <4481B0C5.80301@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Daniel Drake wrote: > Hi, > > I finally got around to reworking the udev rules documentation. It is > now more of a general guide to rule writing and the various things you > can do, with examples. > > The patch isn't very readable, if anyone wants to review the changes I > suggest you just look at the online version as almost all of it has been > rewritten: > http://www.reactivated.net/writing_udev_rules.html > > Comments appreciated. > > Daniel Even this late? Just been trying to set up a usb printer. From Writing udev rules: Examples USB Printer I power on my printer, and it is assigned device node /dev/lp0. Not satisfied with such a bland name, I decide to use udevinfo to aid me in writing a rule which will provide an alternative name: # udevinfo -a -p $(udevinfo -q path -n /dev/lp0) ........ At least on my fc6-test1 ( 2.6.18-rc1) machine, /dev/lp0 is for the parallel port (even though no printer is attached ) and /dev/usb/lp0 is for the usb printer. dmesg |grep lp0 PM: Adding info for No Bus:lp0 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0803 lp0: using parport0 (interrupt-driven). lp0: console ready drivers/usb/class/usblp.c: usblp0: off-line Did earlier kernels use lp0 for usb printers? If not, how about: I power on my printer, and it is assigned device node /dev/usb/lp0. Not satisfied with such a bland name, I decide to use udevinfo to aid me in writing a rule which will provide an alternative name: # udevinfo -a -p $(udevinfo -q path -n /dev/usb/lp0) sean ------------------------------------------------------------------------- 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