summaryrefslogtreecommitdiffstats
path: root/kbd.py
diff options
context:
space:
mode:
authorjakub <jakub>1999-10-04 12:36:26 +0000
committerjakub <jakub>1999-10-04 12:36:26 +0000
commitcbb1a32708b57ce172defa899a816a93cb00d86b (patch)
treecc844f73cc8068adcecaf4fbe9fe6811a14e3a6e /kbd.py
parentc13f0bf226c057846a754285509174bd9a3cadec (diff)
downloadanaconda-cbb1a32708b57ce172defa899a816a93cb00d86b.tar.gz
anaconda-cbb1a32708b57ce172defa899a816a93cb00d86b.tar.xz
anaconda-cbb1a32708b57ce172defa899a816a93cb00d86b.zip
Make serial console installs work.
Diffstat (limited to 'kbd.py')
-rw-r--r--kbd.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/kbd.py b/kbd.py
index 7c8ceb672..36056f181 100644
--- a/kbd.py
+++ b/kbd.py
@@ -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"):