01597f55872e094da00fad610ad94a84f53bec1d
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 32-xorg
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/32-xorg
3 # Purpose:       make sure there does not exist /etc/X11/xorg.conf by default
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 # Latest change: Mon Nov 26 15:10:25 CET 2007 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 if [ -r "$target/etc/X11/xorg.conf" ] ; then
14    mv -f "$target"/etc/X11/xorg.conf "$target"/etc/X11/xorg.conf.debian
15 fi
16
17 if [ "$(readlinke $target/etc/X11/X)" = "/bin/true" ] ; then
18    echo "Warning: /etc/X11/X is a symlink to /bin/true - fixing for you">&2
19    ln -sf /usr/bin/Xorg $target/etc/X11/X
20 fi
21
22 ## END OF FILE #################################################################
23 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3