commit 2760ca361e8eff9a7e42e4756f22d35d5d9135c9
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Nov 10 17:54:28 2019 +0000
Fix udev rules (rfbz#5448)
60-nvidia-uvm.rules | 4 ++--
60-nvidia.rules | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/60-nvidia-uvm.rules b/60-nvidia-uvm.rules
index 8f42f89..9a8b8a6 100644
--- a/60-nvidia-uvm.rules
+++ b/60-nvidia-uvm.rules
@@ -1,2 +1,2 @@
-KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'"
-KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm-tools c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1'"
+KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'"
+KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1'"
diff --git a/60-nvidia.rules b/60-nvidia.rules
index 429e532..5df2acb 100644
--- a/60-nvidia.rules
+++ b/60-nvidia.rules
@@ -1,3 +1,3 @@
KERNEL=="nvidia", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m 666
/dev/nvidiactl c 195 255'"
-KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'for i in $(cat
/proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/mknod
-Z -m 666 /dev/nvidia${i} c 195 ${i}; done'"
+KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'for i in $$(cat
/proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/mknod
-Z -m 666 /dev/nvidia$${i} c 195 $${i}; done'"
KERNEL=="nvidia_modeset", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m
666 /dev/nvidia-modeset c 195 254'"
Show replies by date