X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F32-xorg;h=b149005456d8b9ec0c7836891c1c62e98a3abffb;hp=60d61dc2dbcc162b2d54dcbf532fd0878b124394;hb=4b2e8632eba4fa2343986f897cfcd59ed1413d66;hpb=f9e99174221e1035d0eec78ff68d0c65bdc3fba4 diff --git a/etc/grml/fai/config/scripts/GRMLBASE/32-xorg b/etc/grml/fai/config/scripts/GRMLBASE/32-xorg index 60d61dc..b149005 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/32-xorg +++ b/etc/grml/fai/config/scripts/GRMLBASE/32-xorg @@ -1,10 +1,9 @@ -#!/bin/sh +#!/bin/bash # Filename: /etc/grml/fai/config/scripts/GRMLBASE/32-xorg # Purpose: make sure there does not exist /etc/X11/xorg.conf by default # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sun Sep 16 23:17:08 CEST 2007 [mika] ################################################################################ set -u @@ -14,5 +13,10 @@ if [ -r "$target/etc/X11/xorg.conf" ] ; then mv -f "$target"/etc/X11/xorg.conf "$target"/etc/X11/xorg.conf.debian fi +if [ "$(readlink $target/etc/X11/X)" = "/bin/true" ] ; then + echo "Warning: /etc/X11/X is a symlink to /bin/true - fixing for you">&2 + ln -sf /usr/bin/Xorg $target/etc/X11/X +fi + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3