File: nvidia-kernel-common.udev

package info (click to toggle)
nvidia-kernel-common 20100522%2B1
  • links: PTS
  • area: contrib
  • in suites: squeeze
  • size: 76 kB
  • ctags: 1
  • sloc: sh: 103; makefile: 7
file content (12 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
# Set ACLs for console users on /dev/nvidia*
# This is necessary until the driver uses some other form of auth
ENV{ACL_MANAGE}=="0", GOTO="nvidia_end"
DRIVER=="nvidia",ENV{NVIDIA_DEVICE}="1"
ENV{NVIDIA_DEVICE}!="1", GOTO="nvidia_end"
ENV{ACL_MANAGE}="1"
TEST!="/lib/libglib-2.0.so.0", GOTO="nvidia_end"
# apply ACL for all locally logged in users
TEST=="/var/run/ConsoleKit/database", \
  RUN+="nvidia_helper --action=$env{ACTION} --device=$env{DEVNAME}"
LABEL="nvidia_end"