--- hal-0.5.7/tools/hal-system-power-hibernate.mandriva 2006-06-21 13:49:07.000000000 +0200 +++ hal-0.5.7/tools/hal-system-power-hibernate 2006-06-21 13:55:04.000000000 +0200 @@ -19,6 +19,15 @@ unsupported fi +#Mandriva support suspend-scripts +elif [ -f /etc/mandriva-release ] ; then + if [ -x /usr/sbin/pmsuspend ] ; then + /usr/sbin/pmsuspend disk + RET=$? + else + unsupported + fi + #RedHat/Fedora only support pm-utils elif [ -f /etc/redhat-release ] || [ -f /etc/fedora-release ] ; then if [ -x /usr/sbin/pm-hibernate ] ; then --- hal-0.5.7/tools/hal-system-power-suspend.mandriva 2006-06-21 13:55:26.000000000 +0200 +++ hal-0.5.7/tools/hal-system-power-suspend 2006-06-21 16:30:17.000000000 +0200 @@ -38,6 +38,21 @@ unsupported fi +#Mandriva supports suspend-scripts +elif [ -f "/etc/mandriva-release" ] ; then + # TODO: fix pmsuspend to take a --wakeup-alarm argument + if [ $seconds_to_sleep != "0" ] ; then + alarm_not_supported + fi + + if [ -x "/usr/sbin/pmsuspend" ] ; then + /usr/sbin/pmsuspend memory + RET=$? + else + # TODO: add support + unsupported + fi + #RedHat/Fedora only support pm-utils elif [ -f "/etc/redhat-release" ] || [ -f "/etc/fedora-release" ] ; then # TODO: fix pm-suspend to take a --wakeup-alarm argument