Server IP : 85.193.89.191 / Your IP : 18.188.70.131 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/983/cwd/lib64/pm-utils/sleep.d/ |
Upload File : |
#!/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