blob: 6862ac83e0585ae8286a7352a394a3b5c0d48ab4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/sh
##########################################################
# Installs NVIDIA binary drivers into openslx plugin-repo
##########################################################
PLUGIN_PATH="/opt/openslx/plugin-repo/xserver"
# we could easily pass this information via calling stage1 script and do not
# need to find it our here ...
DISTRO=$1
cd ${PLUGIN_PATH}
case ${DISTRO} in
ubuntu-8.10*)
./ubuntu-8.10-gfx-install.sh nvidia
;;
ubuntu*)
./ubuntu-gfx-install.sh nvidia
;;
suse-11.0*)
./suse-gfx-install.sh nvidia
;;
# general purpose nvidia installer script
*)
echo " * Running general NVidia installer (expected in ~/xserver-pkgs)"
# unpack the nvidia installer; quickhack - expects just one package
echo " * Unpacking installer"
sh packages/NVIDIA-Linux-*.run -a -x >>nvidia-inst.log 2>&1
# prefix and paths should be matched more closely to each distro
# just demo at the moment ...
stdprfx=/opt/openslx/plugin-repo/xserver/nvidia
# run the lib installer
echo " * Starting the library installer"
echo "Starting the lib installer" >>nvidia-inst.log
$(ls -d NVIDIA-Linux-*)/nvidia-installer -s -q -N --no-abi-note \
--x-prefix=${stdprfx}/usr --x-library-path=${stdprfx}/usr/lib \
--x-module-path=${stdprfx}/usr/lib/xorg/modules \
--opengl-prefix=${stdprfx}/usr --utility-prefix=${stdprfx}/usr \
--documentation-prefix=${stdprfx}/usr --no-runlevel-check \
--no-rpms --no-x-check --no-kernel-module \
--log-file-name=nvidia-lib.log >>nvidia-inst.log 2>&1
# how to get an idea of the installed kernel?
# run the kernel module creator (should be done for every kernel!?)
kernel=2.6.25.18-0.2-pae
echo " * Trying to compile a kernel module for $kernel"
echo "Starting the kernel $kernel installer" >>nvidia-inst.log
$(ls -d NVIDIA-Linux-*)/nvidia-installer -s -q -N -K --no-abi-note \
--kernel-source-path=/lib/modules/${kernel}/build -k ${kernel} \
--kernel-install-path=/opt/openslx/plugin-repo/xserver/nvidia/modules \
--no-runlevel-check --no-abi-note --no-rpms --no-cc-version-check \
--log-file-name=nvidia-kernel.log >>nvidia-inst.log 2>&1
echo " * Have a look into the several *.log files in "
echo " stage1/${DISTRO}/plugin-repo/xserver"
;;
esac
# set a proper return value to evaluate it in the calling script
exit 0
|