MINI SHELL

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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/sbin/pm-hibernate
#!/bin/sh

# Simple hibernate 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="hibernate"

. /etc/pm/functions

[ -f /sys/power/disk ] || exit 1
[ -f /sys/power/state ] || exit 1

take_suspend_lock || exit 1

default_resume_kernel
run_hooks suspend

sync ; sync ; sync

echo -n "platform" > /sys/power/disk
echo -n "disk" > /sys/power/state

run_hooks resume reverse

remove_suspend_lock 200


Anon7 - 2021