From 9eede6075dd14870a06a3099fcad9a21298d3938 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 2 Feb 2009 14:08:51 +0000 Subject: Cleanups: Removed completely useless nvidia installer part for SuSE10.2, see #371 too ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2562 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/xserver/files/suse-gfx-install.sh | 46 +++------------------- 1 file changed, 5 insertions(+), 41 deletions(-) (limited to 'os-plugins/plugins/xserver/files/suse-gfx-install.sh') diff --git a/os-plugins/plugins/xserver/files/suse-gfx-install.sh b/os-plugins/plugins/xserver/files/suse-gfx-install.sh index dea8c017..33c3a456 100755 --- a/os-plugins/plugins/xserver/files/suse-gfx-install.sh +++ b/os-plugins/plugins/xserver/files/suse-gfx-install.sh @@ -1,7 +1,7 @@ #!/bin/sh # -# Currently suse 10.2 and 11.0 is supported! +# Currently 11.0 is supported! # # not right any more - removed from script @@ -30,48 +30,12 @@ if [ "$1" = "nvidia" ]; then exit fi - #To handle it under suse is kinda retarded. SuSE 10.2's zypper don't know - #a flag similiar to "--download-only" (should be supported in a later - #SuSE Version!) - #SuSE 10.2 and 10.3 has two Kernelpackages: - # nvidia-gfxG01-kmp-bigsmp and -default - #And its different nameing scheme to suse 11 - - mkdir -p nvidia/modules nvidia/temp - cd nvidia/temp - - #TODO: licence information... even suse requires an accept - # TODO: let it automatical find the newest file... see ati section - # only problem should be the kernel package - - # TODO: the following check doesn't work - why? - # this is wasted time for suse-11.0 users - if [ "10.2" = "`cat /etc/SuSE-release | tail -n1 | cut -d' ' -f3`" ]; then - echo " * Downloading nvidia rpm packages... this could take some time..." - wget -q -c \ - ftp://download.nvidia.com/opensuse/10.2/i586/nvidia-gfxG01-kmp-bigsmp-173.14.12_2.6.18.8_0.10-0.1.i586.rpm \ - ftp://download.nvidia.com/opensuse/10.2/i586/nvidia-gfxG01-kmp-default-173.14.12_2.6.18.8_0.10-0.1.i586.rpm \ - ftp://download.nvidia.com/opensuse/10.2/i586/x11-video-nvidiaG01-173.14.12-0.1.i586.rpm - - rpm2cpio x11-video-nvidiaG01-173.14.12-0.1.i586.rpm | cpio -idv > /dev/null - - rm -rf ./usr/include - # Todo: recheck after development progress, perhaps an nvidia x11 tool needs /usr/share/pixmaps - # same with var id's - #rm -rf ./usr/share - - mv ./usr .. - - # TODO: matching kernel problem... our openslx system picks -bigsmp - unintentionally! - rpm2cpio nvidia-gfxG01-kmp-bigsmp-173.14.12_2.6.18.8_0.10-0.1.i586.rpm | cpio -idv > /dev/null - #rpm2cpio nvidia-gfxG01-kmp-default-173.14.12_2.6.18.8_0.10-0.1.i586.rpm | cpio -idv - #TODO: take care about the kernel issue. Find won't work with two equal kernelmodules in lib/... - find lib/ -name "*.ko" -exec mv {} ../modules \; - fi - ############################################################ - ## SUSE 10.2 Section ## + ## SUSE 11.0 Section ## ############################################################ + + # distro info should be passed by calling scripts as known within the + # plugin environment, see e.g. rev2561 if [ "11.0" = "`cat /etc/SuSE-release | tail -n1 | cut -d' ' -f3`" ]; then echo " * Downloading nvidia rpm packages... this could take some time..." # add repository for nvidia drivers -- cgit v1.2.3-55-g7522