summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2006-03-06 06:38:34 +0000
committeremax <emax@FreeBSD.org>2006-03-06 06:38:34 +0000
commit2c76f6757ed83ab49320bc8add1d9717493b19ce (patch)
tree667a92a9f95efaaedfbd3def5535bb15d742f3f3 /etc/devd.conf
parent6401ef60bd59c05126a12e332c4d5013372c9e34 (diff)
downloadFreeBSD-src-2c76f6757ed83ab49320bc8add1d9717493b19ce.zip
FreeBSD-src-2c76f6757ed83ab49320bc8add1d9717493b19ce.tar.gz
Add new 'setkeyboard' method to the /etc/rc.d/syscons. It accepts the
keyboard device name (i.e. /dev/kbd0). This method will do nothing is kbdmux(4) is the current active keyboard, otherwise it will switch active keyboard as requested. Modify ukbd(4) entries in the /etc/devd.conf to use /etc/rc.d/syscons and new 'setkeyboard' method. No comments from: freebsd-current@ MFC after: 1 day
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 0c4ed14..5385e06 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -99,11 +99,11 @@ detach 100 {
# When a USB keyboard arrives, attach it as the console keyboard.
attach 100 {
device-name "ukbd0";
- action "kbdcontrol -k /dev/ukbd0 < /dev/console && /etc/rc.d/syscons restart";
+ action "/etc/rc.d/syscons setkeyboard /dev/ukbd0 && /etc/rc.d/syscons restart";
};
detach 100 {
device-name "ukbd0";
- action "kbdcontrol -k /dev/kbd0 < /dev/console";
+ action "/etc/rc.d/syscons setkeyboard /dev/kbd0";
};
# The entry below starts moused when a mouse is plugged in. Moused
OpenPOWER on IntegriCloud