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

Contents of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations) (download)
Mon May 16 19:26:39 2005 UTC (9 years, 7 months ago) by wolf31o2
File size: 1071 byte(s)
Updated to have the same coding style, moved functions from each script into livecd-functions.sh, and cleaned up function names.

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 51 # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.14 2005/05/16 19:26:39 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 44 elif [ -x /usr/sbin/opengl-update ]
42     then
43 wolf31o2 46 /usr/sbin/opengl-update --dst-prefix=/etc/opengl $GLTYPE
44 wolf31o2 18 else
45 wolf31o2 44 echo "ERROR: no opengl-update script can be located"
46     exit 1
47 wolf31o2 18 fi
48 wolf31o2 5
49 wolf31o2 36 #exec /usr/bin/xinit

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20