Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/sbin/runscript
- # Copyright 1999-2009 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $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 $
- depend() {
- need localmount
- }
- start() {
- if get_bootparam "nox" ; then
- touch /etc/.noxdm
- fi
- if lsmod | grep -q "^fglrx\b"; then
- eselect opengl list | grep -q "ati \*" || eselect opengl set ati
- ln -fs fglrx.conf /etc/X11/xorg.conf
- else
- eselect opengl list | grep -q "xorg-x11 \*" || eselect opengl set xorg-x11
- rm -f /etc/X11/xorg.conf
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment