KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/bin/pm-is-supported
#!/bin/bash
#
# Copyright 2007 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

help_options() {
	echo "pm-is-supported [--suspend | --hibernate | --suspend-hybrid ]"
	echo
}

export LC_COLLATE=C

ARG=${1#--}

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

case "$ARG" in
	suspend)
		grep -q mem /sys/power/state || exit 1
		;;
	hibernate)
		[ -f /sys/power/disk ] || exit 1
		grep -q disk /sys/power/state || exit 1
		;;
	suspend-hybrid)
		# grep -q mem /sys/power/state || exit 1
		# grep -q disk /sys/power/state || exit 1
		exit 1
		;;
	help)
		help_options
		;;
	*)
		help_options 1>&2
		exit 1
		;;
esac

exit 0

Anon7 - 2021