From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pitt Date: Tue, 02 Nov 2010 13:25:33 +0000 Subject: Re: can we print the attr{} also ? Message-Id: <20101102132533.GD2300@piware.de> List-Id: References: <201011021218.oA2CIaXR000974@dcnode-01.unlimitedmail.net> In-Reply-To: <201011021218.oA2CIaXR000974@dcnode-01.unlimitedmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello, J. Bakshi [2010-11-02 17:49 +0530]: > Can I send these information through notify-send ? I have already > tried with [ notify-send %d-%k-$attr{ID_VENDOR} ] and the > $attr{ID_VENDOR} is blank. ID_VENDOR is an udev propery, not a sysfs attribute. Try $env{ID_VENDOR} instead. > I have also tried with "udevadm info -a -p /sys/block/sdc" and foound > > ````````````````` > ATTRS{vendor}="JetFlash" > ATTRS{model}="Transcend 8GB > ``````````````````````` > > using these as $attr{vendor} also has no effect. Presumably the vendor attribute is not on the parent node that you matched with KERNELS, SUBSYSTEMS, DRIVERS, or ATTRS test? (see man udev). Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)