summaryrefslogtreecommitdiff
path: root/configs/os/udev
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-26 20:12:44 +0300
committerDevaev Maxim <[email protected]>2020-07-26 20:12:44 +0300
commit409ec74a75d94c7f28adf356b762d5b0aa9047d6 (patch)
tree1d2103c0b7d16f43a0a371ffc3b2df4602d7c140 /configs/os/udev
parentcebd94a9335c25373ab521b8477212a745735956 (diff)
hdmiusb for rpi2 and rpi3
Diffstat (limited to 'configs/os/udev')
-rw-r--r--configs/os/udev/v0-hdmiusb-rpi2.rules4
-rw-r--r--configs/os/udev/v0-hdmiusb-rpi3.rules4
2 files changed, 8 insertions, 0 deletions
diff --git a/configs/os/udev/v0-hdmiusb-rpi2.rules b/configs/os/udev/v0-hdmiusb-rpi2.rules
new file mode 100644
index 00000000..dcbae9b8
--- /dev/null
+++ b/configs/os/udev/v0-hdmiusb-rpi2.rules
@@ -0,0 +1,4 @@
+# https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
+# https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="1-1.5:1.0", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"
diff --git a/configs/os/udev/v0-hdmiusb-rpi3.rules b/configs/os/udev/v0-hdmiusb-rpi3.rules
new file mode 100644
index 00000000..dee441ff
--- /dev/null
+++ b/configs/os/udev/v0-hdmiusb-rpi3.rules
@@ -0,0 +1,4 @@
+# https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
+# https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="1-1.2:1.0", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"