tux_mind

xdm-setup

Sep 2nd, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. #!/sbin/runscript
  2. # Copyright 1999-2009 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-setup.initd-1,v 1.1 2010/04/13 10:07:39 scarabeus Exp $
  5.  
  6. depend() {
  7.         need localmount
  8. }
  9.  
  10. start() {
  11.         if get_bootparam "nox" ; then
  12.                 touch /etc/.noxdm
  13.         fi
  14.         if lsmod | grep -q "^fglrx\b"; then
  15.                 eselect opengl list | grep -q "ati \*" || eselect opengl set ati                                    
  16.                 ln -fs fglrx.conf /etc/X11/xorg.conf                                                                
  17.         else                                                                                                        
  18.                 eselect opengl list | grep -q "xorg-x11 \*" || eselect opengl set xorg-x11                          
  19.                 rm -f /etc/X11/xorg.conf                                                                            
  20.         fi                                                                                                          
  21. }
Advertisement
Add Comment
Please, Sign In to add comment