PK!j7p p pm-actionnuȯ#!/bin/sh # vim: noexpandtab # Simple suspend script # # Copyright 2006 Red Hat, Inc. # # Based on work from: # Bill Nottingham # Peter Jones # David Zeuthen # Richard Hughes # # 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 # # The rule here? Simplicity. export STASHNAME=pm-suspend export METHOD="$(echo ${0##*pm-} |tr - _)" . "/usr/lib64/pm-utils/pm-functions" # return code tracking for when suspend fails r=0 help() { echo "${0##*/} [options]" echo echo "Options can change how suspend or hibernate is done." echo echo " --help" run_hooks sleep help sleep_module_help exit 0 } if [ "$(id -u)" != "0" ]; then echo This utility may only be run by the root user. 1>&2 exit 1 fi remove_suspend_lock() { release_lock "${STASHNAME}.lock" } try_lock "${STASHNAME}.lock" || exit 1 # make sure we release the lock no matter how we exit trap remove_suspend_lock 0 # clean up from the last run rm -rf "${STORAGEDIR}" mkdir -p "${STORAGEDIR}" # save our parameter list. [ -f "$PARAMETERS" ] || echo '' >"$PARAMETERS" add_parameters $PM_CMDLINE update_parameters while [ $# -gt 0 ] do [ "$1" = "--help" ] && help shift done command_exists "check_$METHOD" && command_exists "do_$METHOD" || { log "pm-utils does not know how to $METHOD on this system." exit 1 } "check_$METHOD" || { log "This system does not support $METHOD as a sleep method." exit 1 } case "$METHOD" in suspend*) ACTION=suspend; REVERSE=resume ;; hibernate) ACTION=hibernate; REVERSE=thaw ;; *) echo "Cannot happen. Please file a bug against pm-utils." exit 1 ;; esac init_logfile "${PM_LOGFILE}" log "Initial commandline parameters: $PM_CMDLINE" load_hook_blacklist load_hook_parameters # run the sleep hooks log "$(date): Running hooks for $ACTION." if run_hooks sleep "$ACTION $METHOD"; then # Sleep only if we know how and if a hook did not inhibit us. log "$(date): performing $METHOD" sync "do_$METHOD" || r=128 log "$(date): Awake." else log "$(date): Inhibit found, will not perform $METHOD" fi log "$(date): Running hooks for $REVERSE" # run the sleep hooks in reverse with the wakeup action if run_hooks sleep "$REVERSE $METHOD" reverse; then log "$(date): Finished." else exit $((r+1)) fi exit $r PK!ʡh,h, pm-reset-swapnuȯELF>@@(%@8 @@@@@@88@8@@@ ``d ((`(`TT@T@DDPtd @ @LLQtdRtd``/lib64/ld-linux-x86-64.so.2GNU GNU{ uӄUNL_  )9R=_Xy " qK(6 `D `libc.so.6fopen__stack_chk_failfseek__fprintf_chkstdoutfclosestderrfwritefreadstrcmp__libc_start_mainsysconf__gmon_start__GLIBC_2.3.4GLIBC_2.4GLIBC_2.2.5ti ii ui ` ` `  ` `( `0 `8 `@ `H `P `X ` ` ` h ` HH HtsH5r %t @%r h%j h%b h%Z h%R h%J h%B h%: hp%2 h`%* h P%" h @USHuxHnH @Hqt Could not check "%s" for swap signature: %m Could not clear swap signature on "%s": %m ;L@hp zRx T*zRx $0FJ w?;*3$"D"A`,dAIG@ AAH ,ADL@ AAK ,H2AAD z AAA D8eBEE E(H0H8M@l8A0A(B BBB<`@ @ @ h@ @``o@@@  ``@@H o@oo@(`@@@@@@@@&@6@F@pm-reset-swap.debug]7zXZִF!t/7J]?Eh=ڊ̓NK)sޕb7Car r5$9g+7}&idJCn_CZ>~+?mL.b Q[PyZSHeknT G̾ޭ8V^_r7A2>'{$9#?JHT_<8ѩ"Et(%ra2滈 >мC/PUUnfv\DEԣc*>ދמAnZ1D pi{B9Ҹw+ :A MI'%dCgu9:국Jr [*w;WɅd(Wo=Kޏ,{!e`d,0}Yi~k:otVdϕSQ%F #LPA?r*˙ o31S Zp<Ğoţ6i[7=y8W].Ԉg `bfʔD,$3nZ;,+l/+CAkqK/+0^@ӯ"[N0/v]P*$PWJXīBt6\ el_~)SU? ߫I(ɼүb= b6c|jjLW>>?3@MMYdc<$*iӲ0![ϰ j" Oy:fw&/}:z@pa&I!}A]bDӱ]PBg-9U#1N5YAj)t*)@.@a1vBgYZ.shstrtab.interp.note.ABI-tag.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.text.fini.rodata.eh_frame_hdr.eh_frame.init_array.fini_array.jcr.dynamic.got.got.plt.data.bss.gnu_debuglink.gnu_debugdata 8@8T@T !t@t$4o@(> @PF@No@[o@@j@Ht`@` ~h@hy@P@P @  @  @ L @ `` ` (`(` ` pp `p  `t t  $ PK!W  pm-pmunuȯELF>H@@@8 @@@@@@88@8@@@d d ``\x ((`(`TT@T@DDPtd @ @44QtdRtd``/lib64/ld-linux-x86-64.so.2GNU GNU)?@F%Bb~=  )91>WPi DI 7#p`*x`libc.so.6perror__stack_chk_failstdoutstderrioctlfwritecloseopenaccessstrcmp__libc_start_main__gmon_start__GLIBC_2.4GLIBC_2.2.5ii xui `p` x` ` `(`0`8`@`H`P`X` `` HH HtsH5 % @% h% h% h% h% h% h% h% hp% h`% h PATUSHdH%(HD$1H^ @HnuM29UT5^l#=2\QzR4ZE jYOr\Ku2<=Ӎ>c+%9 q=UhlCǩf˧^ƻ El@3E*i18|Dl"4"|Eŗ~;#[.~bPRcCtIJ=`! )]2 +rYiC*u1oo6Yzoi7mUEJTz +FmKOog-:^!_?DU,QգMh&,jC&ԇ%lTV6Z?oⴋGC4nL} n]w8灡eΙ&sr#):rG(Ix&X&0A-3 8< D U.lF'CG ~4y. $^⨪O-lh x I ٥&&؍mC,鸤 #5w—D[FW#@zh ʢEy sٞءs*(9#=Ŝ9CgYZ.shstrtab.interp.note.ABI-tag.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.text.fini.rodata.eh_frame_hdr.eh_frame.init_array.fini_array.jcr.dynamic.got.got.plt.data.bss.gnu_debuglink.gnu_debugdata 8@8T@T !t@t$4o@(> @8F@No@[o@0j@Ht@ ~@y0@0@ @  @ _ @ 4X @X `` ` (`(``hh`hp`llP PK!x`IIservicenuȯ#!/bin/sh # Handle service invocation on distros that do not have a "service" command. # It handles LSB by default, and other distros that the maintainer is aware of. REL="/etc/slackware-release /etc/slackware-version /etc/arch-release" svc="/etc/init.d/$1" exists() { [ -x "$svc" ]; } start() { "$svc" start; } stop() { "$svc" stop; } status() { "$svc" status; } for rel in $REL; do [ -f "$rel" ] || continue case $rel in *slackware*) svc="/etc/rc.d/rc.$1";; *arch*) svc="/etc/rc.d/$1" status() { [ -e "/var/run/daemons/$1" ] && echo "$1 running"; } ;; esac break done exists || { echo "$1: unrecognized service or non-LSB Linux distro"; exit 1; } case $2 in start|stop|status) "$2" ;; restart) stop; start ;; *) echo "$2: Unrecognized service command" exit 1 ;; esac PK!j7p p pm-actionnuȯPK!ʡh,h,  pm-reset-swapnuȯPK!W  N8pm-pmunuȯPK!x`IITservicenuȯPK#$X