Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 281081 Details for
Bug 376527
x11-drivers/nvidia-drivers should create devices upon module load (was: dev-util/nvidia-cuda-sdk / local scripts to create /dev/nvidia* nodes)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/local.d/cuda.stop
cuda.stop (text/plain), 526 bytes, created by
Tomas Vondra
on 2011-07-26 21:00:56 UTC
(
hide
)
Description:
/etc/local.d/cuda.stop
Filename:
MIME Type:
Creator:
Tomas Vondra
Created:
2011-07-26 21:00:56 UTC
Size:
526 bytes
patch
obsolete
>#!/bin/bash > ># check if there's a nvidia module >mod=`lsmod | grep '^nvidia ' | wc -l` > >if [ "$mod" -eq "1" ]; then > > # Count the number of NVIDIA controllers found. > NVDEVS=`lspci | grep -i NVIDIA` > N3D=`echo "$NVDEVS" | grep "3D controller" | wc -l` > NVGA=`echo "$NVDEVS" | grep "VGA compatible controller" | wc -l` > N=`expr $N3D + $NVGA - 1` > > for i in `seq 0 $N`; do > if [ -e "/dev/nvidia$i" ]; then > rm /dev/nvidia$i > fi > done > > if [ -e "/dev/nvidiactl" ]; then > rm /dev/nvidiactl > fi > > rmmod nvidia > >else > exit 1 >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 376527
:
281079
| 281081 |
305423
|
306581
|
306583
|
306669
|
306747
|
306807