Don't configure X.org if it's not installed.
authorChris Lamb <chris@chris-lamb.co.uk>
Wed, 13 Aug 2008 23:59:42 +0000 (00:59 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:01 +0000 (17:48 +0100)
scripts/live-bottom/21xdriver
scripts/live-bottom/21xvidemode

index 7a16589..075a53e 100755 (executable)
@@ -25,6 +25,11 @@ then
        exit 0
 fi
 
+if [ ! -x /root/usr/bin/X ]
+then
+       exit 0
+fi
+
 . /scripts/live-functions
 
 log_begin_msg "Configuring X video driver"
index e1c1d46..24116e9 100755 (executable)
@@ -25,6 +25,11 @@ then
        exit 0
 fi
 
+if [ ! -x /root/usr/bin/X ]
+then
+       exit 0
+fi
+
 . /scripts/live-functions
 
 log_begin_msg "Configuring X video modes"