halevt-dev
[Top][All Lists]
Advanced

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

Re: [Halevt-dev] Using parent values in exec attribute


From: Patrice Dumas
Subject: Re: [Halevt-dev] Using parent values in exec attribute
Date: Sun, 21 Mar 2010 20:16:49 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Mar 21, 2010 at 05:01:59PM +0100, Marcus Habermehl wrote:
> Hi.
> 
> Is it possible to use the values of parent devices in an exec attribute?
> 
> The documentation says it's possible to use it in the match
> attribute. But if I'm try to use it in the exec attribute I get
> UNKNOWN.

That means that it cannot be found (or maybe it is empty, I don't know
for sure).

> As example:
> 
> <halevt:Device match="hal.info.parent.hal.storage.drive_type = sd_mmc">
>     <halevt:Insertion exec="echo
> &quot;$hal.block.storage_device.hal.storage.vendor$&quot; &gt;
> /tmp/insertion"/>
> </halevt:Device>

Can you send the lshal result, when the device is inserted, or,
at least, the lshal -u for the device and the parent?

--
Pat




reply via email to

[Prev in Thread] Current Thread [Next in Thread]