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

Contents of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log


Revision 124 - (show 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 #!/bin/bash
2
3 # 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 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 #first, get paths right if we're getting started b4 login
21 source /etc/profile
22
23 livecd_get_cmdline || exit 1
24
25 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 get_video_cards || exit 1
34
35 if [ -x /usr/sbin/opengl-update-livecd ]
36 then
37 /usr/sbin/opengl-update-livecd $GLTYPE
38 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 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