Re: can we print the attr{} also ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux