on_ac_power: support UPower (new name for DeviceKit-power)
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 23 Feb 2010 13:57:05 +0000 (14:57 +0100)
committerMichael Biebl <mbiebl@gmail.com>
Wed, 17 Mar 2010 23:20:11 +0000 (00:20 +0100)
commite8d0b58a9df080f021d04b4c2d358003974092f3
treec5e62db1fed949f40f3bb9e053e257ed408a3f01
parentb010efe88f668e961a4b5f99480041c3408e81b8
on_ac_power: support UPower (new name for DeviceKit-power)

DeviceKit-power got renamed to UPower and its D-Bus interface changed
accordingly.

Try UPower first in on_ac_power.
If it fails, try DeviceKit-power.
It if fails too, try hal.

Also update documentation.

Signed-off-by: Michael Biebl <mbiebl@gmail.com>
man/pm-action.xml
man/pm-is-supported.xml
src/on_ac_power