Problems getting callouts to work

John Galloway jrg at dbengines.com
Mon Jun 12 12:40:11 PDT 2006


On Jun 11, 2006, at 8:20 PM, David Leangen wrote:
>
> But the doc does not say WHERE this list is and how to add callouts to
> the list.

The "list" is in HAL.  You add to it by having a fdi file in one of the
dirs that HAL will search for fdi files, and append the callout you
want for the devices you want.  so e.g. (assuming I understand  
this...:-)

in say /usr/share/hal/fdi/policy/20thirdparty/20-your-file.fdi
you could have
<device>
   <match key=...
      <append key="info.callouts.add" type="strlist">/usr/local/ 
myprogram</append>
   </match>
</device>

Then /usr/local/myprogram should be called anytime a device is added to
the global device list, and the env var HALD_ACTION will be  
"add" (and all
the other hal items form the thing being added will be in other HALD_*
env vars for the programs usage.
   -jrg


More information about the hal mailing list