文件操作 - 000record-status
返回文件管理
返回主菜单
删除本文件
文件: /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
修改文件时间
将文件时间修改为当前时间的前一年
删除文件