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

Contents of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log


Revision 124 - (hide annotations) (download)
Thu Dec 14 18:24:57 2006 UTC (7 years, 4 months ago) by wolf31o2
File size: 1005 byte(s)
Removed all of the CVS-based headers and added /sbin/udevtrigger to the coldplug section of autoconfig, which should allow us to have coldplug-like functionality with newer udev versions.
1 wolf31o2 5 #!/bin/bash
2    
3 wolf31o2 32 # Check for an xorg.conf
4     if [ ! -e /etc/X11/xorg.conf ]
5     then
6     echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting"
7     exit 1
8     fi
9    
10 wolf31o2 51 if [ -f /sbin/livecd-functions.sh ]
11     then
12     source /sbin/livecd-functions.sh
13     else
14     echo "ERROR: /sbin/livecd-functions.sh could not be loaded!"
15     exit 1
16     fi
17    
18     livecd_check_root || exit 1
19    
20 wolf31o2 5 #first, get paths right if we're getting started b4 login
21     source /etc/profile
22    
23 wolf31o2 51 livecd_get_cmdline || exit 1
24    
25 wolf31o2 5 for x in $CMDLINE
26     do
27     if [ "$x" = "agpgart" ]
28     then
29     modprobe agpgart > /dev/null 2>&1
30     fi
31     done
32    
33 wolf31o2 51 get_video_cards || exit 1
34 wolf31o2 43
35 wolf31o2 18 if [ -x /usr/sbin/opengl-update-livecd ]
36     then
37     /usr/sbin/opengl-update-livecd $GLTYPE
38 wolf31o2 117 elif [ -x /usr/bin/eselect -a -e /usr/share/eselect/modules/opengl.eselect ]
39     then
40     /usr/bin/eselect opengl set $GLTYPE --dst-prefix=/etc/opengl
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