Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

nvidia.install dkms-nvidia-295.40

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.68 KB  |  hits: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. post_install()
  2. {
  3.     DKMS=`which dkms 2>/dev/null`
  4.  
  5.     echo ">>> DKMS: Module add, build, and install "
  6.  
  7.     $DKMS add  -m nvidia -v 295.40
  8.     $DKMS build -m nvidia -v 295.40
  9.     $DKMS install -m nvidia -v 295.40
  10.  
  11.     /sbin/depmod -a
  12. }
  13.  
  14. pre_upgrade()
  15. {
  16.     pre_remove
  17. }
  18.  
  19. post_upgrade()
  20. {
  21.     post_install
  22. }
  23.  
  24. pre_remove()
  25. {
  26.     DKMS=`which dkms 2>/dev/null`
  27.     echo ">>> DKMS: Module uninstall "
  28.  
  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
  33.     fi
  34.  
  35. }
  36.  
  37. post_remove()
  38. {
  39.     /sbin/depmod -a
  40. }