/[livecd-tools]/trunk/x-setup
Gentoo

Diff of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 105 Revision 117
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-1999-2005 Gentoo Foundation 2# Copyright 1999-1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.15 2006/06/09 01:05:46 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.16 2006/08/01 19:38:36 wolf31o2 Exp $
5 5
6# Check for an xorg.conf 6# Check for an xorg.conf
7if [ ! -e /etc/X11/xorg.conf ] 7if [ ! -e /etc/X11/xorg.conf ]
8then 8then
9 echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting" 9 echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting"
36get_video_cards || exit 1 36get_video_cards || exit 1
37 37
38if [ -x /usr/sbin/opengl-update-livecd ] 38if [ -x /usr/sbin/opengl-update-livecd ]
39then 39then
40 /usr/sbin/opengl-update-livecd $GLTYPE 40 /usr/sbin/opengl-update-livecd $GLTYPE
41elif [ -x /usr/bin/eselect -a -e /usr/share/eselect/modules/opengl.eselect ]
42then
43 /usr/bin/eselect opengl set $GLTYPE --dst-prefix=/etc/opengl
41elif [ -x /usr/sbin/opengl-update ] 44elif [ -x /usr/sbin/opengl-update ]
42then 45then
43 /usr/sbin/opengl-update --dst-prefix=/etc/opengl $GLTYPE 46 /usr/sbin/opengl-update --dst-prefix=/etc/opengl $GLTYPE
44elif [ -x /usr/bin/eselect -a -e /usr/share/eselect/modules/opengl.eselect ]
45then
46 /usr/bin/eselect opengl set $GLTYPE --dst-prefix=/etc/opengl
47else 47else
48 echo "ERROR: no opengl-update script can be located" 48 echo "ERROR: no opengl-update script can be located"
49 exit 1 49 exit 1
50fi 50fi
51 51

Legend:
Removed from v.105  
changed lines
  Added in v.117

  ViewVC Help
Powered by ViewVC 1.1.20