mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. #!/bin/sh
  2. #
  3. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version. A copy of the GNU General Public
  9. # License can be found at Documentation/COPYING.
  10. #
  11. # Revision: 1.1
  12. # Author: Sebastian Jaenicke <sj-rocklinux@jaenicke.org>
  13. #
  14. NV_VERSION=4496
  15. export IGNORE_CC_MISMATCH=1
  16. echo Compiling kernel module ..
  17. CWD=$PWD
  18. cd usr/src/nv
  19. make nvidia.o
  20. install -m 0664 -o root -g root nvidia.o /lib/modules/`uname -r`/kernel/drivers/video/nvidia.o
  21. depmod -a
  22. cd $CWD
  23. echo Installing GL files ..
  24. make install_gl
  25. if [ "x`grep nvidia /etc/devfsd.conf`" = "x" ]; then
  26. echo "Adding entries to /etc/devfsd.conf .."
  27. echo "LOOKUP nvidiactl MODLOAD" >> /etc/devfsd.conf
  28. echo "LOOKUP nvidia0 MODLOAD" >> /etc/devfsd.conf
  29. echo "LOOKUP nvidia1 MODLOAD" >> /etc/devfsd.conf
  30. fi
  31. if [ "x`grep nvidia /etc/modules.conf`" = "x" ]; then
  32. echo "Adding entry to /etc/modules.conf .."
  33. echo "alias /dev/nvidia* nvidia" >> /etc/modules.conf
  34. fi
  35. echo "Finished."