1
#!/bin/sh
2
3
# Update the NVIDIA kernel module
4
# 1. Build the kernel module rpm.
5
rpmbuild -bb --without driverp --target "$(uname -m)" --define "kernel $(uname -r)" ~/src/rpm/SPECS/nvidia-glx.spec
6
7
# 2. We aren't debugging this thing.
8
rm ~/src/rpm/RPMS/i686/nvidia-glx-debuginfo-*.rpm
9
10
# 3. Update the local yum repo
11
mv ~/src/rpm/RPMS/i686/kernel-module-nvidia-$(uname -r)*.rpm ~/local/repo
12
createrepo ~/local/repo
13
14
# 4. Install the new Nvidia kernel module with yum.
15
sudo yum -y install "kernel-module-nvidia-$(uname -r)*"
16
17
# Update the SPCA50X kernel module.
18
cd ~/src/spca5xx
19
make clean
20
make
21
sudo make install
22