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

#!/bin/sh
#
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Revision: 1.1
# Author: Sebastian Jaenicke <sj-rocklinux@jaenicke.org>
#
NV_VERSION=5328
export IGNORE_CC_MISMATCH=1
echo Compiling kernel module ..
CWD=$PWD
cd usr/src/nv
make nvidia.o
install -m 0664 -o root -g root nvidia.o /lib/modules/`uname -r`/kernel/drivers/video/nvidia.o
depmod -a
cd $CWD
echo Installing GL files ..
make install_gl
if [ "x`grep nvidia /etc/devfsd.conf`" = "x" ]; then
echo "Adding entries to /etc/devfsd.conf .."
echo "LOOKUP nvidiactl MODLOAD" >> /etc/devfsd.conf
echo "LOOKUP nvidia0 MODLOAD" >> /etc/devfsd.conf
echo "LOOKUP nvidia1 MODLOAD" >> /etc/devfsd.conf
fi
if [ "x`grep nvidia /etc/modules.conf`" = "x" ]; then
echo "Adding entry to /etc/modules.conf .."
echo "alias /dev/nvidia* nvidia" >> /etc/modules.conf
fi
echo "Finished."