Re: apcupsd and hal
On Tue, Oct 28, 2008 at 07:35:10 +1100, Alex Samad wrote:
> On Sat, Oct 25, 2008 at 11:27:35PM +0200, Florian Kulzer wrote:
> > On Sun, Oct 26, 2008 at 07:20:24 +1100, Alex Samad wrote:
> > > On Sat, Oct 25, 2008 at 12:02:07PM +0200, Florian Kulzer wrote:
> > > > On Sat, Oct 25, 2008 at 16:21:50 +1100, Alex Samad wrote:
> > > > > Hi
>
> [snip]
>
> >
> > If removing the handler leads to the queue filling up then maybe you
> > could replace it like this:
> >
> > <append key="info.addons" type="strlist">/bin/true</append>
> >
> > (I have never tried this.)
>
> Is there a way of overriding the file, by placing another file in
> /etc/hal .... (instead of editing this file ?)
As far as I know, FDI files under /etc/hal/fdi are processed after the
files under /usr/share/hal/fdi/, so I think it should be possible to
remove the unwanted element from info.addons and then to add /bin/true
like this:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="hiddev.application_pages" contains="Power Device Page">
<remove key="info.addons" type="strlist">hald-addon-hid-ups</remove>
<append key="info.addons" type="strlist">/bin/true</append>
</match>
</device>
</deviceinfo>
I would try to put this into a file called /etc/hal/fdi/policy/local.fdi
or something like that.
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Reply to: