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

Diff of /trunk/x-setup

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 18 Revision 32
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
7if [ ! -e /etc/X11/xorg.conf ]
8then
9 echo "ERROR: /etc/X11/xorg.conf cannot be found! Exiting"
10 exit 1
11fi
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
7source /etc/profile 14source /etc/profile
8 15
9echo "0" > /proc/sys/kernel/printk 16echo "0" > /proc/sys/kernel/printk
73sed -i -e "s:##MOUSEPROTO##:${XMOUSETYPE}:" \ 80sed -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

Legend:
Removed from v.18  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.20