summaryrefslogtreecommitdiff
path: root/configs/os/udev
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-08-31 21:00:15 +0300
committerDevaev Maxim <[email protected]>2020-08-31 21:00:15 +0300
commit4d7b439443070d15c21e0f6cfa763656b85fe0ac (patch)
tree7c6b1019a8868d5d4cfc870e9a99dcc3392327a4 /configs/os/udev
parente62a3bedc9707b17b521faec2cf2ab2473cdbaef (diff)
rpi1
Diffstat (limited to 'configs/os/udev')
-rw-r--r--configs/os/udev/v0-hdmi-rpi.rules4
-rw-r--r--configs/os/udev/v0-hdmiusb-rpi.rules4
2 files changed, 8 insertions, 0 deletions
diff --git a/configs/os/udev/v0-hdmi-rpi.rules b/configs/os/udev/v0-hdmi-rpi.rules
new file mode 100644
index 00000000..90812eaa
--- /dev/null
+++ b/configs/os/udev/v0-hdmi-rpi.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=="20801000.csi|20801000.csi1", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"
diff --git a/configs/os/udev/v0-hdmiusb-rpi.rules b/configs/os/udev/v0-hdmiusb-rpi.rules
new file mode 100644
index 00000000..933f7337
--- /dev/null
+++ b/configs/os/udev/v0-hdmiusb-rpi.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=="video0", SUBSYSTEM=="video4linux", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"