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

Contents of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations) (download)
Mon May 16 19:26:39 2005 UTC (9 years, 6 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 #!/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.14 2005/05/16 19:26:39 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 else
45 echo "ERROR: no opengl-update script can be located"
46 exit 1
47 fi
48
49 #exec /usr/bin/xinit

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20