diff options
author | Erik Troan <ewt@redhat.com> | 1999-09-09 15:36:11 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-09-09 15:36:11 +0000 |
commit | f2acded806376d25be39ab0f5122d6ba56ee16d8 (patch) | |
tree | f917de192a0a5e6cf68b3627bb510f3b8cc8697e /xf86config.py | |
parent | 4a2d20b1a9f1a184df86542adead0adf81cfd408 (diff) | |
download | anaconda-f2acded806376d25be39ab0f5122d6ba56ee16d8.tar.gz anaconda-f2acded806376d25be39ab0f5122d6ba56ee16d8.tar.xz anaconda-f2acded806376d25be39ab0f5122d6ba56ee16d8.zip |
added (untested) xconfig to kickstart
Diffstat (limited to 'xf86config.py')
-rw-r--r-- | xf86config.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/xf86config.py b/xf86config.py index 5527307fa..5f42e11f5 100644 --- a/xf86config.py +++ b/xf86config.py @@ -13,14 +13,7 @@ def _(x): class XF86Config: def __init__ (self, mouse = None): - if mouse: - (mouseProtocol, mouseEmulate, mouseDev) = mouse - self.mouse = { "mouseDev" : "/dev/" + mouseDev, - "mouseProto" : mouseProtocol } - else: - self.mouse = { "mouseDev" : "/dev/mouse", - "mouseProto" : "PS/2" } - + self.setMouse(mouse) self.server = None self.vidCards = [] self.cardMan = None @@ -35,6 +28,15 @@ class XF86Config: self.skip = 0 self.modes = { "8" : ["640x480"] } + def setMouse(self, mouse): + if mouse: + (mouseProtocol, mouseEmulate, mouseDev) = mouse + self.mouse = { "mouseDev" : "/dev/" + mouseDev, + "mouseProto" : mouseProtocol } + else: + self.mouse = { "mouseDev" : "/dev/mouse", + "mouseProto" : "PS/2" } + def filterModesByMemory (self): if not self.vidRam: return |