文件操作 - smart_event.conf
返回文件管理
返回主菜单
删除本文件
文件: /root/sh/libreport/events.d/smart_event.conf
编辑文件内容
# Access to /dev/sda usually requires root. # skdump is usually in /usr/sbin. # Therefore we run it as post-create event, thus: under root. # # The code is identical for all three packages. # # To be moved to the packages, so that it is (de)installed # together with these packages. EVENT=post-create component=gnome-disk-utility which skdump >/dev/null 2>&1 || exit 0 for f in /dev/[sh]d[a-z]; do test -e "$f" || continue skdump "$f" echo done >smart_data EVENT=post-create component=libatasmart which skdump >/dev/null 2>&1 || exit 0 for f in /dev/[sh]d[a-z]; do test -e "$f" || continue skdump "$f" echo done >smart_data EVENT=post-create component=udisks which skdump >/dev/null 2>&1 || exit 0 for f in /dev/[sh]d[a-z]; do test -e "$f" || continue skdump "$f" echo done >smart_data
修改文件时间
将文件时间修改为当前时间的前一年
删除文件