| 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.4 2004/11/19 16:11:24 wolf31o2 Exp $ |
4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.5 2005/02/03 12:25:48 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 |
| 5 | |
12 | |
| 6 | #first, get paths right if we're getting started b4 login |
13 | #first, get paths right if we're getting started b4 login |
| 7 | source /etc/profile |
14 | source /etc/profile |
| 8 | |
15 | |
| 9 | echo "0" > /proc/sys/kernel/printk |
16 | echo "0" > /proc/sys/kernel/printk |
| … | |
… | |
| 73 | sed -i -e "s:##MOUSEPROTO##:${XMOUSETYPE}:" \ |
80 | sed -i -e "s:##MOUSEPROTO##:${XMOUSETYPE}:" \ |
| 74 | -e "s:##MOUSEDEV##:${DEVICE}:" \ |
81 | -e "s:##MOUSEDEV##:${DEVICE}:" \ |
| 75 | -e "s:##VERTREFRESH##:${VERTREFRESH}:" \ |
82 | -e "s:##VERTREFRESH##:${VERTREFRESH}:" \ |
| 76 | -e "s:##HORIZSYNC##:${HORIZSYNC}:" \ |
83 | -e "s:##HORIZSYNC##:${HORIZSYNC}:" \ |
| 77 | -e "s:DefaultColorDepth 16:DefaultColorDepth 24:" \ |
84 | -e "s:DefaultColorDepth 16:DefaultColorDepth 24:" \ |
| 78 | /etc/X11/XF86Config-4 |
85 | /etc/X11/xorg.conf |
| 79 | |
86 | |
| 80 | #exec /usr/X11R6/bin/xinit |
87 | #exec /usr/X11R6/bin/xinit |