HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux S202606089271 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User: groatmachine_usr (1022)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //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