Posted by jmbarnes on Thu 5th Aug 21:12 (modification of post by view diff)
download | new post
- #!/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
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.