summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-10-03 16:07:02 +0000
committerRoy Marples <uberlord@gentoo.org>2006-10-03 16:07:02 +0000
commit8adbafced9a63c92a5098333eb57b36baecde77f (patch)
tree32dbf128b5360aa79efc09b5708d6f918324e2a0 /sys-freebsd/freebsd-sbin/files
parentNew version (diff)
downloadgentoo-2-8adbafced9a63c92a5098333eb57b36baecde77f.tar.gz
gentoo-2-8adbafced9a63c92a5098333eb57b36baecde77f.tar.bz2
gentoo-2-8adbafced9a63c92a5098333eb57b36baecde77f.zip
Update devd.conf to handle multiplexed moused
(Portage version: 2.1.2_pre2-r2)
Diffstat (limited to 'sys-freebsd/freebsd-sbin/files')
-rw-r--r--sys-freebsd/freebsd-sbin/files/devd.conf25
1 files changed, 17 insertions, 8 deletions
diff --git a/sys-freebsd/freebsd-sbin/files/devd.conf b/sys-freebsd/freebsd-sbin/files/devd.conf
index f7052bca2adc..fd1e0352e5ba 100644
--- a/sys-freebsd/freebsd-sbin/files/devd.conf
+++ b/sys-freebsd/freebsd-sbin/files/devd.conf
@@ -93,14 +93,23 @@ detach 100 {
action "kbdcontrol -k /dev/kbd0 < /dev/console";
};
-# Not sure how to handle this in Gentoo yet
-# The entry below starts moused when a mouse is plugged in. Moused
-# stops automatically (actually it bombs :) when the device disappears.
-#attach 100 {
-# device-name "ums[0-9]+";
-# action "/etc/rc.d/moused start $device-name";
-#};
-
+# The entry below starts and stops moused when a mouse is plugged in.
+attach 100 {
+ device-name "psm[0-9]+";
+ action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name start";
+};
+detach 100 {
+ device-name "psm[0-9]+";
+ action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name stop";
+};
+attach 100 {
+ device-name "ums[0-9]+";
+ action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name start";
+};
+detach 100 {
+ device-name "ums[0-9]+";
+ action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name stop";
+};
# Notify all users before beginning emergency shutdown when we get
# a _CRT or _HOT thermal event and we're going to power down the system