nvidia-drivers updated: FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'cpu_tlbstate'
This commit is contained in:
parent
5d9ecbad76
commit
01678ca3a7
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Invalid args" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
add|ADD)
|
||||
#hopefully this prevents infinite loops like bug #454740
|
||||
if lsmod | grep -iq nvidia; then
|
||||
/opt/bin/nvidia-smi > /dev/null
|
||||
fi
|
||||
;;
|
||||
remove|REMOVE)
|
||||
rm -f /dev/nvidia*
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue