summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/xserver/files/suse-gfx-install.sh
diff options
context:
space:
mode:
authorBastian Wissler2008-12-02 18:27:13 +0100
committerBastian Wissler2008-12-02 18:27:13 +0100
commitcdbe310c8037e787de4a384b41ad9a13c6aed6d4 (patch)
treea6c3e7dc6923e2ad7a124b8d0c41c0e80dd35c09 /os-plugins/plugins/xserver/files/suse-gfx-install.sh
parentxserver plugin: * fixed some strange condition (that wasnt me...) (diff)
downloadcore-cdbe310c8037e787de4a384b41ad9a13c6aed6d4.tar.gz
core-cdbe310c8037e787de4a384b41ad9a13c6aed6d4.tar.xz
core-cdbe310c8037e787de4a384b41ad9a13c6aed6d4.zip
xserver plugin: * make installation less verbose
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2395 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.sh20
1 files changed, 7 insertions, 13 deletions
diff --git a/os-plugins/plugins/xserver/files/suse-gfx-install.sh b/os-plugins/plugins/xserver/files/suse-gfx-install.sh
index 6299b584..e50aa277 100755
--- a/os-plugins/plugins/xserver/files/suse-gfx-install.sh
+++ b/os-plugins/plugins/xserver/files/suse-gfx-install.sh
@@ -70,22 +70,19 @@ if [ "$1" = "nvidia" ]; then
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
- zypper addrepo http://download.nvidia.com/opensuse/11.0/ NVIDIA
- # confirm authenticity of key (once)
- # -> After key is cached, this is obsolete
- zypper se -r NVIDIA x11-video-nvidiaG01
+ zypper --no-gpg-checks addrepo http://download.nvidia.com/opensuse/11.0/ NVIDIA > /dev/null 2>&1
# get URLs by virtually installing nvidia-OpenGL driver
- zypper -n -vv install -D x11-video-nvidiaG01 > logfile
+ zypper --no-gpg-checks -n -vv install -D x11-video-nvidiaG01 2>&1 > logfile
# take unique urls from logfile
URLS=$(cat logfile | grep -P -o "http://.*?rpm " | sort -u | xargs)
for RPM in $URLS; do
RNAME=$(echo ${RPM} | sed -e 's,^.*/\(.*\)$,\1,g')
if [ ! -e ${RNAME} ]; then
- wget ${RPM} > /dev/null
+ wget ${RPM} > /dev/null 2>&1
fi
# We use rpm2cpio from suse to extract
- rpm2cpio ${RNAME} | ${BUSYBOX} cpio -id > /dev/null
+ rpm2cpio ${RNAME} | ${BUSYBOX} cpio -id > /dev/null 2>&1
done
mv ./usr/X11R6/lib/* ./usr/lib/
mv ./usr ..
@@ -119,19 +116,16 @@ if [ "$1" = "ati" ]; then
echo " * Downloading ati rpm packages... this could take some time..."
# add repository for nvidia drivers
- zypper addrepo http://www2.ati.com/suse/11.0/ ATI
- # confirm authenticity of key (once)
- # -> After key is cached, this is obsolete
- zypper se -r ATI x11-video-fglrxG01
+ zypper --no-gpg-checks addrepo http://www2.ati.com/suse/11.0/ ATI > /dev/null 2>&1
# get URLs by virtually installing fglrx-OpenGL driver
- zypper -n -vv install -D ati-fglrxG01-kmp${KSUFFIX} x11-video-fglrxG01 > logfile
+ zypper --no-gpg-checks -n -vv install -D ati-fglrxG01-kmp${KSUFFIX} x11-video-fglrxG01 > logfile
# take unique urls from logfile
URLS=$(cat logfile | grep -P -o "http://.*?rpm " | grep fglrx | sort -u | xargs)
for RPM in $URLS; do
RNAME=$(echo ${RPM} | sed -e 's,^.*/\(.*\)$,\1,g')
if [ ! -e ${RNAME} ]; then
- wget ${RPM} > /dev/null
+ wget ${RPM} > /dev/null 2>&1
fi
# We use rpm2cpio from suse to extract -> propably new rpm version
rpm2cpio ${RNAME} | ${BUSYBOX} cpio -id > /dev/null