From 8c7b7ce9955d98f11d251da025a7dec8d230f46f Mon Sep 17 00:00:00 2001 From: Bastian Wissler Date: Thu, 26 Feb 2009 16:37:43 +0000 Subject: vmchooser: * various changes to run-virt.sh * new vmchooser binary puts path of xml file to image_name node xserver: * suse-gfx-install: new link for ati drivers * XX_xserver: fixed path git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2645 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/vmchooser/files/run-virt.sh | 19 ++++++++----------- os-plugins/plugins/vmchooser/files/vmchooser | Bin 658532 -> 658596 bytes os-plugins/plugins/xserver/XX_xserver.sh | 2 +- .../plugins/xserver/files/suse-gfx-install.sh | 13 +++++++++++++ 4 files changed, 22 insertions(+), 12 deletions(-) (limited to 'os-plugins/plugins') diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index 759709e2..0a9919c2 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -29,32 +29,29 @@ xml=$1 [ -e "${xml}" ] || { echo -e "\n\tNo XML file given!\n"; exit 1; } -# path to the xml file(just take the path to the xml file) -imagepath=${xml%/*} - # Read needed variables from XML file ############################################################################### # file name of the image -imagename=$(grep -i " we have to link it here - if [ "1" -eq "$( ls -l /usr/lib/dri/fglrx_dri.so \ + if [ "1" -eq "$( ls -l /mnt/usr/lib/dri/fglrx_dri.so \ | grep -o "/var/X11R6.*so$" | wc -l )" ]; then ln -s ${PLUGIN_ROOTFS}/usr/lib/dri/fglrx_dri.so \ ${glliblinks}dri/fglrx_dri.so diff --git a/os-plugins/plugins/xserver/files/suse-gfx-install.sh b/os-plugins/plugins/xserver/files/suse-gfx-install.sh index eb985f47..d1f41c90 100755 --- a/os-plugins/plugins/xserver/files/suse-gfx-install.sh +++ b/os-plugins/plugins/xserver/files/suse-gfx-install.sh @@ -245,6 +245,7 @@ if [ "$1" = "ati" ]; then cd .. rm -rf ${PKG} + buildfglrx ${KVERS} ;; @@ -296,6 +297,18 @@ if [ "$1" = "ati" ]; then esac cd .. + # OpenGl implementation (libGL?) expect fglrx_dri.so in /usr/X11R6/lib/dri/ + if [ ! -f /usr/X11R6/lib/modules/dri/fglrx_dri.so -a \ + ! -f usr/X11R6/lib/modules/dri/fglrx_dri.so ]; then + if [ ! -d /usr/X11R6/lib/modules/dri ]; then + mkdir -p /usr/X11R6/lib/modules/dri + fi + if [ -f usr/lib/dri/fglrx_dri.so ]; then + ln -s ${BASE}/ati/usr/lib/dri/fglrx_dri.so \ + /usr/X11R6/lib/modules/dri/fglrx_dri.so + fi + fi + rm -rf temp/ fi -- cgit v1.2.3-55-g7522