Linux permission setup

Closes #260
This commit is contained in:
József Farkas
2017-03-06 21:48:36 +01:00
parent 46fdc61df3
commit 971af0868c
8 changed files with 58 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.
# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.
# TODO: Restore VID to 16d0 for the latest prototype.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE:="0666"

View File

@@ -0,0 +1,5 @@
# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.
# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.
# TODO: Restore VID to 16d0 for the latest prototype.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d3", ATTRS{idProduct}=="05e[abcd]", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16d3", ATTRS{idProduct}=="05ec", MODE:="0666", SYMLINK+="uhk-right-bootloader"

6
rules/setup-rules.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd $(dirname $0)
cp 50-uhk-write-access.rules /etc/udev/rules.d
udevadm trigger
udevadm settle