17 lines
323 B
Bash
Executable File
17 lines
323 B
Bash
Executable File
#!/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
|
|
|