/
usr
/
lib
/
pm-utils
/
sleep.d
/
/usr/lib/pm-utils/sleep.d
mkdir
upload
Name
Size
Mode
Actions
000record-status
323
0755
edit
dl
rm
95hdparm-apm
3073
0755
edit
dl
rm
Edit:
/usr/lib/pm-utils/sleep.d/000record-status
(323B)
#!/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
Save
cmd:
run