From: Michael Mrozek Date: Fri, 4 Jun 2010 21:47:43 +0000 (+0200) Subject: op_bluetooth: Bluetooth disabling now works :) X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=7ffeb53ad8e199cf1ad52e829edabb45c71b495f op_bluetooth: Bluetooth disabling now works :) --- diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth.desktop b/recipes/pandora-system/pandora-scripts/op_bluetooth.desktop index 4009873..7cae88e 100644 --- a/recipes/pandora-system/pandora-scripts/op_bluetooth.desktop +++ b/recipes/pandora-system/pandora-scripts/op_bluetooth.desktop @@ -2,7 +2,7 @@ Name=Toggle Bluetooth Status Comment=Toggle the status of your Bluetooth device. StartupNotify=false -Exec=/usr/pandora/scripts/op_bluetooth.sh +Exec=sudo /usr/pandora/scripts/op_bluetooth.sh Icon=bluetooth Terminal=false Type=Application diff --git a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh index 251137d..0b3d8d3 100644 --- a/recipes/pandora-system/pandora-scripts/op_bluetooth.sh +++ b/recipes/pandora-system/pandora-scripts/op_bluetooth.sh @@ -14,6 +14,8 @@ else then notify-send -u normal "Bluetooth" "Bluetooth is being disabled..." -i /usr/share/icons/hicolor/32x32/apps/blueman.png sudo /usr/sbin/hciconfig ${INTERFACE} down + sudo killall btaddconn + sudo killall btdelconn rm ~/.op_btenabled else pgrep bluetoothd