| 1 | #!/bin/bash |
1 | #!/bin/bash |
| 2 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
2 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
| 3 | # Distributed under the terms of the GNU General Public License v2 |
3 | # Distributed under the terms of the GNU General Public License v2 |
| 4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.1 2004/05/14 13:27:25 wolf31o2 Exp $ |
4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.2 2004/09/28 01:35:58 wolf31o2 Exp $ |
| 5 | |
5 | |
| 6 | #first, get paths right if we're getting started b4 login |
6 | #first, get paths right if we're getting started b4 login |
| 7 | source /etc/profile |
7 | source /etc/profile |
| 8 | |
8 | |
| 9 | echo "0" > /proc/sys/kernel/printk |
9 | echo "0" > /proc/sys/kernel/printk |
| … | |
… | |
| 38 | then |
38 | then |
| 39 | ;echo "*******************************" |
39 | ;echo "*******************************" |
| 40 | ;echo "Entering Vesa browser-only mode" |
40 | ;echo "Entering Vesa browser-only mode" |
| 41 | ;echo "*******************************" |
41 | ;echo "*******************************" |
| 42 | ;sleep 3 |
42 | ;sleep 3 |
| 43 | GLTYPE=xfree |
43 | GLTYPE=xorg-x11 |
| 44 | fi |
44 | fi |
| 45 | fi |
45 | fi |
| 46 | |
46 | |
| 47 | fi |
47 | fi |
| 48 | opengl-update $GLTYPE |
48 | opengl-update $GLTYPE |
| … | |
… | |
| 70 | -e "s:##VERTREFRESH##:${VERTREFRESH}:" \ |
70 | -e "s:##VERTREFRESH##:${VERTREFRESH}:" \ |
| 71 | -e "s:##HORIZSYNC##:${HORIZSYNC}:" \ |
71 | -e "s:##HORIZSYNC##:${HORIZSYNC}:" \ |
| 72 | -e "s:DefaultColorDepth 16:DefaultColorDepth 24:" \ |
72 | -e "s:DefaultColorDepth 16:DefaultColorDepth 24:" \ |
| 73 | /etc/X11/XF86Config-4 |
73 | /etc/X11/XF86Config-4 |
| 74 | |
74 | |
| 75 | # Now, we need to export LD_PATH since env-update can't do this for us (no python, |
|
|
| 76 | #/etc/env.d/09opengl removed... |
|
|
| 77 | |
|
|
| 78 | #cp /etc/ld.so.conf.orig /etc/ld.so.conf |
|
|
| 79 | #echo /usr/lib/opengl/${GLTYPE}/lib >> /etc/ld.so.conf |
|
|
| 80 | #ldconfig |
|
|
| 81 | # time to fire up X |
|
|
| 82 | #exec /usr/X11R6/bin/xinit |
75 | #exec /usr/X11R6/bin/xinit |
| 83 | |
|
|