文件操作 - 49bluetooth
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib64/pm-utils/sleep.d/49bluetooth
编辑文件内容
#!/bin/sh # IBM specific hack to disable/enable bluetooth. # TODO: Doesn't the working USB suspend/resume functionality # make this code more or less obsolete? . "${PM_FUNCTIONS}" [ -f /proc/acpi/ibm/bluetooth ] || exit $NA suspend_bluetooth() { if grep -q enabled /proc/acpi/ibm/bluetooth; then savestate ibm_bluetooth enable echo disable > /proc/acpi/ibm/bluetooth else savestate ibm_bluetooth disable fi } resume_bluetooth() { state_exists ibm_bluetooth || return restorestate ibm_bluetooth > /proc/acpi/ibm/bluetooth } case "$1" in hibernate|suspend) suspend_bluetooth ;; thaw|resume) resume_bluetooth ;; *) exit $NA ;; esac
修改文件时间
将文件时间修改为当前时间的前一年
删除文件