3 DKMS=`which dkms 2>/dev/null`
5 echo ">>> DKMS: Module add, build, and install "
7 $DKMS add -m nvidia -v 290.10
8 $DKMS build -m nvidia -v 290.10
9 $DKMS install -m nvidia -v 290.10
26 DKMS=`which dkms 2>/dev/null`
27 echo ">>> DKMS: Module uninstall "
29 line=`$DKMS status -m nvidia`
30 if echo "$line" | grep -E 'added|built|installed'; then
31 version=`echo "$line" | sed "s/nvidia,\([^,]*\)[,:].*/\1/;t;d"`
32 $DKMS remove -m nvidia -v $version --all