From: Chris Adams Date: Sat, 28 Jan 2006 01:29:21 +0000 Subject: Re: Matching different levels in sysfs Message-Id: <20060128012921.GB1422629@hiwaay.net> List-Id: References: <20060126002922.GA833500@hiwaay.net> In-Reply-To: <20060126002922.GA833500@hiwaay.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Once upon a time, Chris Adams said: > I'd like to match SYSFS{bInterfaceNumber}="01" and > SYSFS{serial}="FTOIQ4MN", but I don't see how. Well, I tried both of the suggestions, SYSFS{../serial} and GOTO, but neither worked (may be due to this being a Fedora Core 3 system with udev-039). I ended up with: KERNEL="ttyUSB*", SYSFS{serial}="FTOIQ4MN", PROGRAM="/bin/cat /sys/class/tty/%k/device/../bInterfaceNumber", RESULT="01", NAME="%k", SYMLINK="gps%e" Not the prettiest but it works. -- Chris Adams Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&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