From d54573f5b4e347ca17dcc065eaa668bb6318d736 Mon Sep 17 00:00:00 2001 From: Bastian Wissler Date: Tue, 7 Oct 2008 16:27:44 +0000 Subject: xserver: * suse-11.0 nvidia install script removes rpms before downloading. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2267 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/xserver/files/suse-gfx-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'os-plugins/plugins/xserver') diff --git a/os-plugins/plugins/xserver/files/suse-gfx-install.sh b/os-plugins/plugins/xserver/files/suse-gfx-install.sh index 057be242..77bab7d4 100755 --- a/os-plugins/plugins/xserver/files/suse-gfx-install.sh +++ b/os-plugins/plugins/xserver/files/suse-gfx-install.sh @@ -54,14 +54,15 @@ if [ "$1" = "nvidia" ]; then # confirm authenticity of key (once) # -> After key is cached, this is obsolete zypper se -r NVIDIA x11-video-nvidiaG01 - # get URLs + # get URLs by virtually installing nvidia-OpenGL driver zypper -n -vv install -D x11-video-nvidiaG01 > logfile # take unique urls from logfile URLS=$(cat logfile | grep -P -o "http://.*? " | sort -u | xargs) for RPM in $URLS; do - wget ${RPM} RNAME=$(echo ${RPM} | sed -e 's,^.*/\(.*\)$,\1,g') + rm -rf ${RNAME} + wget ${RPM} # TODO: the following is not working - I don't know why... ${BUSYBOX} rpm2cpio ${RNAME} | ${BUSYBOX} cpio -idv done -- cgit v1.2.3-55-g7522