# $Id: openbsd-wskbd_auto_attach.diff,v 1.1 2001/11/25 18:40:23 jcs Exp $ # XXX: committed # # patch to openbsd 2.9-stable to automatically attach usb keyboards to the # default display without having to run 'wsconscfg -k' # # by joshua stein # Index: wskbd.c =================================================================== RCS file: /home/anoncvs/cvs/src/sys/dev/wscons/wskbd.c,v retrieving revision 1.15 diff -u -r1.15 wskbd.c --- wskbd.c 2001/04/18 02:26:58 1.15 +++ wskbd.c 2001/09/26 16:47:08 @@ -425,9 +425,11 @@ 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 }