]> Pileus Git - ~andy/sunrise/blob - x11-drivers/asus-switcheroo/files/switcheroo.rc
x11-drivers/asus-switcheroo: Remove svn:executable property.
[~andy/sunrise] / x11-drivers / asus-switcheroo / files / switcheroo.rc
1 #!/sbin/runscript
2 # Copyright 1999-2012 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License, v2
4 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm.initd-3,v 1.2 2011/01/22 15:30:07 lxnay Exp $
5
6 depend() {
7         before xdm
8 }
9
10 start() {
11         if ( lsmod | grep nvidia ) ; then 
12                 /usr/bin/eselect opengl set nvidia
13                 /bin/ln -f /etc/X11/xorg.conf-nvidia /etc/X11/xorg.conf
14         else
15                 /usr/bin/eselect opengl set xorg-x11
16                 /bin/rm -f /etc/X11/xorg.conf           
17         fi
18 }
19