From 77972e1ec2ccf47109756cd13b82696e5a5696b3 Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 1 Sep 2004 00:08:15 +0000 Subject: When an USB keyboard is plugged in to a machine with a builtin keyboard, cause the USB keyboard to take over from the builtin one. This means my laptop just works when I'm using it as a desktop. Reviewed by: imp --- etc/devd.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'etc/devd.conf') diff --git a/etc/devd.conf b/etc/devd.conf index 70fde5c..a19fee9 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -55,6 +55,16 @@ detach 100 { device-name "ed50"; }; +# When a USB keyboard arrives, attach it as the console keyboard +attach 100 { + device-name "ukbd0"; + action "test -c /dev/kbd1 && kbdcontrol -k /dev/kbd1 < /dev/console"; +}; +detach 100 { + device-name "ukbd0"; + action "kbdcontrol -k /dev/kbd0 < /dev/console"; +}; + # # Rescan scsi device-names on attach, but not detach. # -- cgit v1.1