|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/sbin/ |
Upload File : |
#!/bin/sh # Simple suspend script # Based on work from: # Bill Nottingham <notting@redhat.com> # Peter Jones <pjones@redhat.com> # David Zeuthen <davidz@redhat.com> # The rule here? Simplicity. export PM_MODE="sleep" [ -f /sys/power/state ] || exit 1 . /etc/pm/functions take_suspend_lock || exit 1 run_hooks suspend sync ; sync ; sync echo -n "mem" > /sys/power/state run_hooks resume reverse remove_suspend_lock 200