can we print the attr{} also ?

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

 



Hello,

With the help of "udevadm monitor --environment" I can find the following when inserting my usb pendrive

````````````````````````````
ID_VENDOR_ENC=JetFlash
ID_VENDOR_ID=058f
ID_MODEL=Transcend_8GB
ID_MODEL_ENC=Transcend\x208GB\x20\x20\x20
ID_MODEL_ID=6387
ID_REVISION=8.07
ID_SERIAL=JetFlash_Transcend_8GB_MTIKD5C1-0:0
ID_SERIAL_SHORT=MTIKD5C1
````````````````````````

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.  

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. 

Could anyone kindly give me a clue please ?
Thanks
--
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