op_bluetooth: Bluetooth disabling now works :)
authorMichael Mrozek <EvilDragon@openpandora.org>
Fri, 4 Jun 2010 21:47:43 +0000 (23:47 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Fri, 4 Jun 2010 21:47:43 +0000 (23:47 +0200)
recipes/pandora-system/pandora-scripts/op_bluetooth.desktop
recipes/pandora-system/pandora-scripts/op_bluetooth.sh

index 4009873..7cae88e 100644 (file)
@@ -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
index 251137d..0b3d8d3 100644 (file)
@@ -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