summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-26 19:27:34 +0000
committerMatt Wilson <msw@redhat.com>1999-09-26 19:27:34 +0000
commit1ad4aad83400a3106d1d30d2b754ad7ed157e51f (patch)
tree271c190ac59206bc1c09d1ee834c7aec5fa9b155 /xf86config.py
parent8e2adaaf2255defe8549137fb84b53237e0cd011 (diff)
downloadanaconda-1ad4aad83400a3106d1d30d2b754ad7ed157e51f.tar.gz
anaconda-1ad4aad83400a3106d1d30d2b754ad7ed157e51f.tar.xz
anaconda-1ad4aad83400a3106d1d30d2b754ad7ed157e51f.zip
1) strip spaces from horiz and vert numbers
2) set monitor type if manually selected
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/xf86config.py b/xf86config.py
index 0f7326c93..754a97037 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -136,7 +136,8 @@ class XF86Config:
if line and line[0] == '#':
continue
fields = string.split (line, ';')
- monitors [fields[0]] = (fields[2], fields[3])
+ monitors [string.strip(fields[0])] = \
+ (string.strip(fields[2]), string.strip(fields[3]))
return monitors
def setMonitor (self, (monitor, (hrange, vrange))):
@@ -446,6 +447,8 @@ Section "Keyboard"
if self.monEisa:
info["EISA"] = self.monEisa
+ elif self.monID:
+ info["EISA"] = self.monID
else:
info["EISA"] = "Generic Monitor"