From: Frank Steiner Date: Mon, 27 Jul 2009 12:04:09 +0000 Subject: environment manipulation within one rule file? Message-Id: <4A6D97B9.7090200@bio.ifi.lmu.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, guess we have sth. similar to this: ENV{ID_CDROM_DVD}="?*", ENV{ID_CDROM_DVD_RW}!="?*", ENV{DVD_LINK}!="?*", SYMLINK+="dvda", ENV{DVD_LINK}="set" ENV{ID_CDROM_DVD_RW}="?*", ENV{DVD_LINK}!="?*", SYMLINK+="dvdb", ENV{DVD_LINK}="set" And say that I have one DVD-ROM and one DVD-RW. I thought that only one rule would fire, because it should set the DVD_LINK variable and prevent the second rule from matching. But I always get /dev/dvda and /dvd/dvdb. Can't I change a variable withing the same rule file? Can I only do that between 71-bla.rules and 72-bla.rules? Or is there sth. else I'm doing wrong? cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *