Is it possible to create a "fake/virtual" UDI which HAL can manipulate ?

YangKun ykun at redhat.com
Tue Mar 27 03:06:06 PDT 2007


Hi everyone,

Can someone tell me if it's possible to create a "fake/virtual" UDI in 
the system ?
If it's possible, I want to create something like :
------------------------------------------------------------
udi = '/org/freedesktop/Hal/devices/fake_nic'
 linux.subsystem = 'net'  (string)
 net.address = '00:00:00:00:00:ff'  (string)
 net.interface = 'fake_eth0'  (string)
 linux.sysfs_path = '/sys/class/net/fake_eth0'  (string)
------------------------------------------------------------

I can use "hal-set-property" to create <key>/<value> pairs for a 
specific UDI. But I don't know how to create an UDI entry.  Can someone 
give me some guidance ?

Thanks you very much !

Regards
YK


More information about the hal mailing list