| 1 | #!/bin/bash |
1 | #!/bin/bash |
| 2 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
2 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
| 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.12 2005/03/01 18:13:51 wolf31o2 Exp $ |
4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.13 2005/04/12 21:25:21 wolf31o2 Exp $ |
| 5 | |
5 | |
| 6 | # Check for an xorg.conf |
6 | # Check for an xorg.conf |
| 7 | if [ ! -e /etc/X11/xorg.conf ] |
7 | if [ ! -e /etc/X11/xorg.conf ] |
| 8 | then |
8 | then |
| 9 | echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting" |
9 | echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting" |
| … | |
… | |
| 84 | if [ -x /usr/sbin/opengl-update-livecd ] |
84 | if [ -x /usr/sbin/opengl-update-livecd ] |
| 85 | then |
85 | then |
| 86 | /usr/sbin/opengl-update-livecd $GLTYPE |
86 | /usr/sbin/opengl-update-livecd $GLTYPE |
| 87 | elif [ -x /usr/sbin/opengl-update ] |
87 | elif [ -x /usr/sbin/opengl-update ] |
| 88 | then |
88 | then |
| 89 | opengl-update $GLTYPE |
89 | /usr/sbin/opengl-update --dst-prefix=/etc/opengl $GLTYPE |
| 90 | else |
90 | else |
| 91 | echo "ERROR: no opengl-update script can be located" |
91 | echo "ERROR: no opengl-update script can be located" |
| 92 | exit 1 |
92 | exit 1 |
| 93 | fi |
93 | fi |
| 94 | |
94 | |