From 9be76a7fa0136f40490343800d9e8f0c3bad9735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 24 Jul 2013 17:50:22 +0200 Subject: [PATCH] functions: fixed typo and bluetooth handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- profiles/functions | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/profiles/functions b/profiles/functions index 19ef8e2..2efaab6 100644 --- a/profiles/functions +++ b/profiles/functions @@ -335,13 +335,13 @@ disable_wifi_powersave() { # disable_bluetooth() { - hciconfig hci0 down - rmmod hci_usb + hciconfig hci0 down >/dev/null 2>&1 + lsmod | grep -q btusb && rmmod btusb } enable_bluetooth() { - modprobe hci_usb - hciconfig hci0 up + modprobe btusb + hciconfig hci0 up >/dev/null 2>&1 } # @@ -353,7 +353,7 @@ _usb_autosuspend() { for i in /sys/bus/usb/devices/*/power/autosuspend; do echo $value > $i; done &> /dev/null } -enable_usb_autosupend() { +enable_usb_autosuspend() { _usb_autosuspend 1 }