summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/xserver/files/suse-gfx-install.sh
diff options
context:
space:
mode:
authorBastian Wissler2008-10-07 18:27:44 +0200
committerBastian Wissler2008-10-07 18:27:44 +0200
commitd54573f5b4e347ca17dcc065eaa668bb6318d736 (patch)
tree565c9566589e8b1a5793cb4bd933c9388d65d567 /os-plugins/plugins/xserver/files/suse-gfx-install.sh
parent* fixed variable (diff)
downloadcore-d54573f5b4e347ca17dcc065eaa668bb6318d736.tar.gz
core-d54573f5b4e347ca17dcc065eaa668bb6318d736.tar.xz
core-d54573f5b4e347ca17dcc065eaa668bb6318d736.zip
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
Diffstat (limited to 'os-plugins/plugins/xserver/files/suse-gfx-install.sh')
-rwxr-xr-xos-plugins/plugins/xserver/files/suse-gfx-install.sh5
1 files changed, 3 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 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