1
0
Fork 0

functions: fixed typo and bluetooth handling

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2013-07-24 14:20:21 +02:00
parent fb3cf04e9a
commit e6a6e69fc4

View file

@ -288,13 +288,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
}
#
@ -306,7 +306,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
}