| 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.2 2004/09/28 01:35:58 wolf31o2 Exp $ |
4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/x-setup,v 1.3 2004/11/18 23:34:13 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 |
| … | |
… | |
| 27 | if [ "`lsmod | cut -f1 -d\" \" | grep ^fglrx$`" = "fglrx" ] |
27 | if [ "`lsmod | cut -f1 -d\" \" | grep ^fglrx$`" = "fglrx" ] |
| 28 | then |
28 | then |
| 29 | echo "ATI driver loaded." |
29 | echo "ATI driver loaded." |
| 30 | GLTYPE=ati |
30 | GLTYPE=ati |
| 31 | else |
31 | else |
| 32 | ;echo "**********************************************************" |
32 | #echo "**********************************************************" |
| 33 | ;echo "NVIDIA or ATI drivers unable to load; aborting." |
33 | #echo "NVIDIA or ATI drivers unable to load; aborting." |
| 34 | ;echo "This demo requires modern NVIDIA or ATI graphics hardware." |
34 | #echo "This demo requires modern NVIDIA or ATI graphics hardware." |
| 35 | ;echo "**********************************************************" |
35 | #echo "**********************************************************" |
| 36 | ;echo "" |
36 | echo "" |
| 37 | if [ -e /proc/splash ] |
37 | if [ -e /proc/splash ] |
| 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=xorg-x11 |
43 | GLTYPE=xorg-x11 |
| 44 | fi |
44 | fi |
| 45 | fi |
45 | fi |
| 46 | |
46 | |
| 47 | fi |
47 | fi |