
| Current Path : /usr/lib/pm-utils/sleep.d/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //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