#!/bin/sh # Ensure any custom vids in /etc/init.d/phc are being applied # after suspend / resume cycle . "${PM_FUNCTIONS}" [ -d /sys/devices/system/cpu/ ] || exit $NA hibernate_cpuphc() { /etc/init.d/phc stop } thaw_cpuphc() { /etc/init.d/phc start } case "$1" in suspend|hibernate) hibernate_cpuphc ;; resume|thaw) thaw_cpuphc ;; *) exit $NA ;; esac