summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins')
-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