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.

41 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=4363
  15. export IGNORE_CC_MISMATCH=1
  16. echo Installing GL libraries ..
  17. cd NVIDIA_GLX-1.0-${NV_VERSION} && \
  18. make install
  19. echo Compiling kernel module ..
  20. cd ../NVIDIA_kernel-1.0-${NV_VERSION} && \
  21. make nvidia.o && \
  22. install -m 0664 -o root -g root nvidia.o /lib/modules/`uname -r`/kernel/drivers/video/ && \
  23. /sbin/depmod -a
  24. if [ "x`grep nvidia /etc/devfsd.conf`" = "x" ]; then
  25. echo "Adding entries to /etc/devfsd.conf .."
  26. echo "LOOKUP nvidiactl MODLOAD" >> /etc/devfsd.conf
  27. echo "LOOKUP nvidia0 MODLOAD" >> /etc/devfsd.conf
  28. echo "LOOKUP nvidia1 MODLOAD" >> /etc/devfsd.conf
  29. fi
  30. if [ "x`grep nvidia /etc/modules.conf`" = "x" ]; then
  31. echo "Adding entry to /etc/modules.conf .."
  32. echo "alias /dev/nvidia* nvidia" >> /etc/modules.conf
  33. fi
  34. echo "Finished."