diff options
author | Erik Troan <ewt@redhat.com> | 2001-06-20 02:07:35 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-06-20 02:07:35 +0000 |
commit | 3909ecc3361e3a5a223a55147d7881275907b54d (patch) | |
tree | 75adb50975bff072b1100696b7fa6f67e3293868 /kbd.py | |
parent | 99da1533c688ec3be0af902d71943c41b8ac4f4f (diff) | |
download | anaconda-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.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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()) + |