summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wskbd.c
diff options
context:
space:
mode:
authorjoshua stein <jcs@cvs.openbsd.org>2001-09-26 01:21:38 +0000
committerjoshua stein <jcs@cvs.openbsd.org>2001-09-26 01:21:38 +0000
commit7d7ae03fc7891047c17aaff2d27f5fe821a7349f (patch)
treecf4786c628fc152dbb0c88c6cd4617cc1b48e39f /sys/dev/wscons/wskbd.c
parent01e96d261c93b9364a44d74933ceed5275f21a7c (diff)
Connect USB keyboards to the display after attaching, no longer requiring
'wsconscfg -k' to be run. Thanks to James Matthews for the extra keyboard. aaron@ ok
Diffstat (limited to 'sys/dev/wscons/wskbd.c')
-rw-r--r--sys/dev/wscons/wskbd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c
index 8d851d1384b..8ae0c5ae1bc 100644
--- a/sys/dev/wscons/wskbd.c
+++ b/sys/dev/wscons/wskbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wskbd.c,v 1.24 2001/09/16 00:42:44 millert Exp $ */
+/* $OpenBSD: wskbd.c,v 1.25 2001/09/26 01:21:37 jcs Exp $ */
/* $NetBSD: wskbd.c,v 1.38 2000/03/23 07:01:47 thorpej Exp $ */
/*
@@ -425,9 +425,11 @@ wskbd_attach(parent, self, aux)
printf("\n");
#if NWSMUX > 0
- if (mux != WSKBDDEVCF_MUX_DEFAULT)
+ if (mux != WSKBDDEVCF_MUX_DEFAULT) {
wsmux_attach(mux, WSMUX_KBD, &sc->sc_dv, &sc->sc_events,
&sc->sc_mux, &wskbd_muxops);
+ wsdisplay_set_console_kbd(self);
+ }
#endif
}