Created
November 1, 2013 13:04
-
-
Save danirod/7265114 to your computer and use it in GitHub Desktop.
Fast way to turn off Bluetooth in HP Pavilion dm1 notebooks equiped with Broadcom wireless cards. These cards have a bug that deactivates WiFi when the user turns off Bluetooth. The only way to turn off Bluetooth without turning off WiFi is using rfkill. This script does all the stuff automatically.
Install: just copy this file to /usr/local/bin…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HCI_ID=$(rfkill list | grep hci0 | cut -f1 -d':') | |
if [ $HCI_ID -ge 0 ]; then | |
rfkill block $HCI_ID | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment