diff options
author | Bastian Wissler | 2008-10-15 10:54:57 +0200 |
---|---|---|
committer | Bastian Wissler | 2008-10-15 10:54:57 +0200 |
commit | 206a952128fd9b71016329f97e6adbfb5972c2e9 (patch) | |
tree | cebc124811d29f2d1235553a2d28b48bbaf0c75c /os-plugins/plugins/xserver/files/suse-gfx-install.sh | |
parent | * typo.. (diff) | |
download | core-206a952128fd9b71016329f97e6adbfb5972c2e9.tar.gz core-206a952128fd9b71016329f97e6adbfb5972c2e9.tar.xz core-206a952128fd9b71016329f97e6adbfb5972c2e9.zip |
vmchooser fixes: * group item is now considered - version 0.0.3 / xserver: * changes to suse-gfx-install.sh: added better SuSE version
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2311 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/xserver/files/suse-gfx-install.sh')
-rwxr-xr-x | os-plugins/plugins/xserver/files/suse-gfx-install.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/os-plugins/plugins/xserver/files/suse-gfx-install.sh b/os-plugins/plugins/xserver/files/suse-gfx-install.sh index 77bab7d4..f99dbbd4 100755 --- a/os-plugins/plugins/xserver/files/suse-gfx-install.sh +++ b/os-plugins/plugins/xserver/files/suse-gfx-install.sh @@ -25,7 +25,7 @@ if [ "$1" = "nvidia" ]; then #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 - if [ "10.2" = "$(lsb_release -r|sed 's/^.*\t//')" ]; then + 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 \ @@ -48,7 +48,7 @@ if [ "$1" = "nvidia" ]; then find lib/ -name "*.ko" -exec mv {} ../modules \; fi - if [ "11.0" = "$(lsb_release -r|sed 's/^.*\t//')" ]; then + if [ "11.0" = "$(cat /etc/SuSE-release | tail -n1 | cut -d' ' -f3)" ]; then # add repository for nvidia drivers zypper addrepo http://download.nvidia.com/opensuse/11.0/ NVIDIA # confirm authenticity of key (once) @@ -66,6 +66,11 @@ if [ "$1" = "nvidia" ]; then # TODO: the following is not working - I don't know why... ${BUSYBOX} rpm2cpio ${RNAME} | ${BUSYBOX} cpio -idv done + mv ./usr .. + find lib/ -name "*.ko" -exec mv {} ../modules \; + #echo "DEBUG xserver SUSE-GFX-INSTALL.SH" + #/bin/bash + #echo "END DEBUG" fi cd .. |