install_bluetooth_support.sh 392 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # Set superuser privileges command if not set
  7. if [[ -z $su ]]; then
  8. export su="sudo"
  9. fi
  10. $su pacman -Sy bluez bluez-utils
  11. $su pacman -Sy blueman
  12. lsmod | grep btusb
  13. #$su nano /etc/bluetooth/main.conf
  14. $su rfkill unblock bluetooth
  15. $su systemctl start bluetooth.service
  16. $su systemctl enable bluetooth.service
  17. $su rfkill list