-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup-udev.sh
More file actions
executable file
·21 lines (19 loc) · 982 Bytes
/
setup-udev.sh
File metadata and controls
executable file
·21 lines (19 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Title : setup-udev.sh
# Description : This script will create a udev symlink for a Bluetooth Remote
# Author : shbatm
# Date : 2025-12-12
# Version : 0.0.5
# Usage : ./setup-udev.sh
# Notes : This script assumes you are using an Amazon Fire TV Remote.
# : any bluetooth device can be used, but you must change the
# : name in the 99-btremote.rules file to match the device.
# : To find the name, connect the device via the desktop and run
# : either "udevadm info -a -p $(udevadm info -q path -n
# : /dev/input/event0) | grep ATTRS{name}" or
# : "cat /proc/bus/input/devices" to get the Name to use.
#==============================================================================
echo "Copy the udev rules file to the correct location"
sudo cp 99-btremote.rules /etc/udev/rules.d/
echo "Reload the udev rules"
sudo udevadm control -R