/[gentoo-x86]/x11-drivers/nvidia-drivers/files/nvidia-udev.sh
Gentoo

Contents of /x11-drivers/nvidia-drivers/files/nvidia-udev.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Apr 6 01:52:26 2012 UTC (2 years, 3 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-sh
Add support for creating device nodes for NVIDIA graphics cards when not using X. Users of CUDA only specificially need this. Work for this done by Rick Farina <sidhayn@gmail.com> bug #376527

(Portage version: 2.1.10.55/cvs/Linux x86_64)

1 #!/bin/sh
2
3 if [ $# -ne 1 ]; then
4 echo "Invalid args" >&2
5 exit 1
6 fi
7
8 case $1 in
9 add|ADD)
10 /opt/bin/nvidia-smi > /dev/null
11 ;;
12 remove|REMOVE)
13 rm -f /dev/nvidia*
14 ;;
15 esac
16
17 exit 0

  ViewVC Help
Powered by ViewVC 1.1.20