nvidia-drivers updated: FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'cpu_tlbstate'

This commit is contained in:
Kolan Sh 2018-01-03 19:19:35 +03:00
parent 5d9ecbad76
commit 01678ca3a7
1 changed files with 20 additions and 0 deletions

View File

@ -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