getting uid from device file

Roman Glebov bleon at gmx.net
Wed Sep 28 04:33:44 PDT 2005


i have for example /dev/sda how can i get to it corresponding hal-UDI 
automatically.
I know manual way with lshal|grep -100 /dev/sda  and then searching for 
corr UDI

or using hal-device-manager

but i want to have automatical way to be able to use it in scripts

Roman


More information about the hal mailing list