Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Global constants
CLEAR='\033[0m'
RED='\033[0;31m'
# Helper usage function
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}ERROR: $1${CLEAR}\n";
/*
* /etc/polkit-1/rules.d/90-blueman.rules
* Taken from https://github.com/blueman-project/blueman/wiki/PolicyKit
*
* Allow users in wheel group to use blueman feature requiring root without authentication.
*/
polkit.addRule(function(action, subject) {
if ((action.id == "org.blueman.network.setup" ||
action.id == "org.blueman.dhcp.client" ||
action.id == "org.blueman.rfkill.setstate" ||
# /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
# Set bluetooth power up.
ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/bin/hciconfig %k up"

Keybase proof

I hereby claim:

  • I am etairi on github.
  • I am etairi (https://keybase.io/etairi) on keybase.
  • I have a public key whose fingerprint is D5C8 EA2E 9967 EAE4 BA6B E314 B173 0E60 D63A 5403

To claim this, I am signing this object: