summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf10
1 files changed, 10 insertions, 0 deletions
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.
#
OpenPOWER on IntegriCloud