3 # hal-system-power-hibernate-sunos.sh
5 # Licensed under the Academic Free License version 2.1
9 echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported
>&2
10 echo No hibernate method found
>&2
14 if [ -x "/usr/sbin/uadmin" ] ; then
21 #Refresh devices as a resume can do funny things
22 for type in button battery ac_adapter
24 devices
=`hal-find-by-capability --capability $type`
25 for device
in $devices
27 dbus-send
--system --print-reply --dest=org.freedesktop.Hal \
28 $device org.freedesktop.Hal.Device.Rescan