diff options
author | jakub <jakub> | 1999-10-04 12:36:26 +0000 |
---|---|---|
committer | jakub <jakub> | 1999-10-04 12:36:26 +0000 |
commit | cbb1a32708b57ce172defa899a816a93cb00d86b (patch) | |
tree | cc844f73cc8068adcecaf4fbe9fe6811a14e3a6e /kbd.py | |
parent | c13f0bf226c057846a754285509174bd9a3cadec (diff) | |
download | anaconda-cbb1a32708b57ce172defa899a816a93cb00d86b.tar.gz anaconda-cbb1a32708b57ce172defa899a816a93cb00d86b.tar.xz anaconda-cbb1a32708b57ce172defa899a816a93cb00d86b.zip |
Make serial console installs work.
Diffstat (limited to 'kbd.py')
-rw-r--r-- | kbd.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -66,7 +66,9 @@ class Keyboard (SimpleConfigFile): kudzu.PROBE_ONE) if list: (device, module, desc) = list[0] - if desc[:8] == 'Sun Type': + if desc[:14] == 'Serial console': + self.type = "Serial" + elif desc[:8] == 'Sun Type': self.type = "Sun" if desc[8:1] == '4': self.model = 'type4' @@ -92,6 +94,10 @@ class Keyboard (SimpleConfigFile): self.layout = 'us' else: self.layout = xx[0] + if self.type == "Sun": + self.info["KEYBOARDTYPE"] = "sun" + elif self.type != "Serial": + self.info["KEYBOARDTYPE"] = "pc" def available (self): if self.type == "Sun": @@ -111,6 +117,8 @@ class Keyboard (SimpleConfigFile): "sunt5-uk", "sunt5-us-cz", ] + if self.type == "Serial": + return [ "us" ] return [ "azerty", "be-latin1", @@ -195,7 +203,8 @@ class Keyboard (SimpleConfigFile): ] def set (self, keytable): - self.info["KEYTABLE"] = keytable + if self.type != "Serial": + self.info["KEYTABLE"] = keytable def get (self): if self.info.has_key ("KEYTABLE"): |