0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.21.12.41


Current Path : /proc/thread-self/root/usr/lib/pm-utils/sleep.d/
Upload File :
Current File : //proc/thread-self/root/usr/lib/pm-utils/sleep.d/000record-status

#!/bin/sh
#
# Record the current operation to allow failure detection.

STAMPFILE="/var/lib/pm-utils/status"

case "$1" in
       hibernate|suspend)
	       mkdir -p `dirname $STAMPFILE`
               echo "$1" >"$STAMPFILE"
               ;;
       thaw|resume) 
               rm -f "$STAMPFILE"
               ;;
esac