summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-06-28 20:43:46 +0000
committerMike Fulbright <msf@redhat.com>2001-06-28 20:43:46 +0000
commit93200f2e56fb8bb76892b4399f679c32228f602c (patch)
tree6d3f900fee93baaae86cffc12917e6979e2a8b44 /installclass.py
parent6901b63410c3ad3103680b97c8991eebcf084144 (diff)
downloadanaconda-93200f2e56fb8bb76892b4399f679c32228f602c.tar.gz
anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.tar.xz
anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.zip
set keyboard type if passed to anaconda
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/installclass.py b/installclass.py
index 5f85e3a6f..0be9810b3 100644
--- a/installclass.py
+++ b/installclass.py
@@ -189,15 +189,17 @@ class BaseInstallClass:
def setKeyboard(self, id, kb):
id.keyboard.set(kb)
- # XXX
- #xkb = todo.keyboard.getXKB ()
+ xkb = id.keyboard.getXKB ()
+
+ if xkb:
+ apply(id.xconfig.setKeyboard, xkb)
- #if xkb:
- #apply (todo.x.setKeyboard, xkb)
+ # XXX
+ #apply (todo.x.setKeyboard, xkb)
- ## hack - apply to instclass preset if present as well
- #if (todo.instClass.x):
- #apply (todo.instClass.x.setKeyboard, xkb)
+ ## hack - apply to instclass preset if present as well
+ #if (todo.instClass.x):
+ #apply (todo.instClass.x.setKeyboard, xkb)
def setHostname(self, id, hostname):
id.network.setHostname(hostname);