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

Contents of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log


Revision 117 - (hide annotations) (download)
Tue Aug 1 19:38:36 2006 UTC (8 years, 3 months ago) by wolf31o2
File size: 1215 byte(s)
Swap eselect opengl and opengl-update preference.

1 wolf31o2 5 #!/bin/bash
2 wolf31o2 51 # Copyright 1999-1999-2005 Gentoo Foundation
3 wolf31o2 5 # Distributed under the terms of the GNU General Public License v2
4 wolf31o2 117 # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.16 2006/08/01 19:38:36 wolf31o2 Exp $
5 wolf31o2 5
6 wolf31o2 32 # Check for an xorg.conf
7     if [ ! -e /etc/X11/xorg.conf ]
8     then
9     echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting"
10     exit 1
11     fi
12    
13 wolf31o2 51 if [ -f /sbin/livecd-functions.sh ]
14     then
15     source /sbin/livecd-functions.sh
16     else
17     echo "ERROR: /sbin/livecd-functions.sh could not be loaded!"
18     exit 1
19     fi
20    
21     livecd_check_root || exit 1
22    
23 wolf31o2 5 #first, get paths right if we're getting started b4 login
24     source /etc/profile
25    
26 wolf31o2 51 livecd_get_cmdline || exit 1
27    
28 wolf31o2 5 for x in $CMDLINE
29     do
30     if [ "$x" = "agpgart" ]
31     then
32     modprobe agpgart > /dev/null 2>&1
33     fi
34     done
35    
36 wolf31o2 51 get_video_cards || exit 1
37 wolf31o2 43
38 wolf31o2 18 if [ -x /usr/sbin/opengl-update-livecd ]
39     then
40     /usr/sbin/opengl-update-livecd $GLTYPE
41 wolf31o2 117 elif [ -x /usr/bin/eselect -a -e /usr/share/eselect/modules/opengl.eselect ]
42     then
43     /usr/bin/eselect opengl set $GLTYPE --dst-prefix=/etc/opengl
44 wolf31o2 44 elif [ -x /usr/sbin/opengl-update ]
45     then
46 wolf31o2 46 /usr/sbin/opengl-update --dst-prefix=/etc/opengl $GLTYPE
47 wolf31o2 18 else
48 wolf31o2 44 echo "ERROR: no opengl-update script can be located"
49     exit 1
50 wolf31o2 18 fi
51 wolf31o2 5
52 wolf31o2 36 #exec /usr/bin/xinit

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20