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

Contents of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log


Revision 105 - (show annotations) (download)
Fri Jun 9 01:05:46 2006 UTC (8 years, 1 month ago) by wolf31o2
File size: 1215 byte(s)
Added initial eselect support.

1 #!/bin/bash
2 # Copyright 1999-1999-2005 Gentoo Foundation
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 $
5
6 # 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 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 #first, get paths right if we're getting started b4 login
24 source /etc/profile
25
26 livecd_get_cmdline || exit 1
27
28 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 get_video_cards || exit 1
37
38 if [ -x /usr/sbin/opengl-update-livecd ]
39 then
40 /usr/sbin/opengl-update-livecd $GLTYPE
41 elif [ -x /usr/sbin/opengl-update ]
42 then
43 /usr/sbin/opengl-update --dst-prefix=/etc/opengl $GLTYPE
44 elif [ -x /usr/bin/eselect -a -e /usr/share/eselect/modules/opengl.eselect ]
45 then
46 /usr/bin/eselect opengl set $GLTYPE --dst-prefix=/etc/opengl
47 else
48 echo "ERROR: no opengl-update script can be located"
49 exit 1
50 fi
51
52 #exec /usr/bin/xinit

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20