From a1311a56603a95bfc642adba1390882591c12c9f Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 14 Aug 2008 00:59:42 +0100 Subject: [PATCH] Don't configure X.org if it's not installed. --- scripts/live-bottom/21xdriver | 5 +++++ scripts/live-bottom/21xvidemode | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scripts/live-bottom/21xdriver b/scripts/live-bottom/21xdriver index 7a16589..075a53e 100755 --- a/scripts/live-bottom/21xdriver +++ b/scripts/live-bottom/21xdriver @@ -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" diff --git a/scripts/live-bottom/21xvidemode b/scripts/live-bottom/21xvidemode index e1c1d46..24116e9 100755 --- a/scripts/live-bottom/21xvidemode +++ b/scripts/live-bottom/21xvidemode @@ -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" -- 2.1.4