#!/bin/sh if [ ! -d /usr/local/etc/bluetooth ]; then mkdir -p /usr/local/etc/bluetooth fi if [ ! -f /usr/local/etc/bluetooth/input.conf ]; then cp -p /usr/local/share/bluez/files/input.conf /usr/local/etc/bluetooth fi if [ ! -f /usr/local/etc/bluetooth/main.conf ]; then cp -p /usr/local/share/bluez/files/main.conf /usr/local/etc/bluetooth fi if [ ! -f /usr/local/etc/bluetooth/network.conf ]; then cp -p /usr/local/share/bluez/files/network.conf /usr/local/etc/bluetooth fi if [ ! -f /usr/local/etc/bluetooth/proximity.conf ]; then cp -p /usr/local/share/bluez/files/proximity.conf /usr/local/etc/bluetooth fi if [ ! -f /etc/udev/rules.d/97-hid2hci.rules ]; then cp -p /usr/local/share/bluez/files/97-hid2hci.rules /etc/udev/rules.d fi udevadm control --reload-rules udevadm trigger