summaryrefslogtreecommitdiffstats
path: root/kbd.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-06-20 02:07:35 +0000
committerErik Troan <ewt@redhat.com>2001-06-20 02:07:35 +0000
commit3909ecc3361e3a5a223a55147d7881275907b54d (patch)
tree75adb50975bff072b1100696b7fa6f67e3293868 /kbd.py
parent99da1533c688ec3be0af902d71943c41b8ac4f4f (diff)
downloadanaconda-3909ecc3361e3a5a223a55147d7881275907b54d.tar.gz
anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.tar.xz
anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.zip
merge from (now defunct) anaconda-dispatch branch
Diffstat (limited to 'kbd.py')
-rw-r--r--kbd.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/kbd.py b/kbd.py
index 02e740a90..9b5831c95 100644
--- a/kbd.py
+++ b/kbd.py
@@ -296,3 +296,12 @@ class Keyboard (SimpleConfigFile):
if Keyboard.console2xsun.has_key (self.get ()):
keylayout = Keyboard.console2xsun[self.get ()]
return ("sun", self.model, keylayout, "", "")
+
+ def write(self, instPath):
+ f = open(instPath + "/etc/sysconfig/keyboard", "w")
+ f.write(str (self))
+ f.close()
+
+ def writeKS(self, f):
+ f.write("keyboard %s\n" % self.get())
+