summaryrefslogtreecommitdiffstats
path: root/xserver.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-04 03:53:11 +0000
committerMatt Wilson <msw@redhat.com>2000-07-04 03:53:11 +0000
commit642e68c31a2786ae6a7af9c41b76d5f541fa89e7 (patch)
tree77e2d0fd26ead71dbff4e973885a80b953a1b09f /xserver.py
parent37f957edf5e21cb90caf77cf87c223461d1e118c (diff)
downloadanaconda-642e68c31a2786ae6a7af9c41b76d5f541fa89e7.tar.gz
anaconda-642e68c31a2786ae6a7af9c41b76d5f541fa89e7.tar.xz
anaconda-642e68c31a2786ae6a7af9c41b76d5f541fa89e7.zip
check harderanaconda-6-9-2-tag
Diffstat (limited to 'xserver.py')
-rw-r--r--xserver.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/xserver.py b/xserver.py
index ea7ed190f..a62990564 100644
--- a/xserver.py
+++ b/xserver.py
@@ -86,7 +86,11 @@ def startX():
raise RuntimeError, "Missing X server"
print serverPath, "missing. Falling back to VGA16"
serverPath = '/usr/X11R6/bin/XF86_VGA16'
-
+
+ if not os.access (serverPath, os.X_OK):
+ print serverPath, "missing. Falling back to text mode"
+ raise RuntimeError, "No X server binaries found to run"
+
server = x.test ([':1', 'vt7', '-s', '1440', '-terminate'], spawn=1)
# give time for the server to fail (if it is going to fail...)