Probably an oversight. You could probably make a fairly simple diff to
do what you wanted though. Looks like apmd.c:147 has code to extract out
the ac state. You could duplicate that below, in the for (;;) loop body
in main - get ac state before determining if 'autoaction' should
actually call something.

-ml

I wanted to try your suggestion, but after building from source, I cannot reproduce this any more.
It seems to behave as expected now.
cvs log shows that the file was not touched in quite some time.
Maybe changes somewhere else fixed it, maybe it is more complicated.
If it happens again I will fix it.

Thanks for pointing me to the right spot.
At least I know now how the /etc/apm/* script are supposed to work.


---
O. J. Krylow

Reply via email to