Move the purely device-name based entries for mice and ethernet

adapters from usbd.conf to devd.conf. USB ethernet devices were
already handled in devd.conf so this just removes their usbd.conf
entry.

PR:	conf/73799
This commit is contained in:
Ian Dowse 2004-11-28 23:16:00 +00:00
parent 01a95e0acf
commit 6d2e81866e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138175
2 changed files with 7 additions and 16 deletions

View File

@ -66,6 +66,13 @@ detach 100 {
action "kbdcontrol -k /dev/kbd0 < /dev/console";
};
# 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";
};
#
# Rescan scsi device-names on attach, but not detach.
#

View File

@ -22,15 +22,6 @@ device "Entrega Serial with UART"
attach "if ! kldstat -n usio > /dev/null 2>&1 ; then kldload usio; fi"
attach "/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}"
# The entry below starts and stops dhclient when an ethernet device is inserted
# Caveat: It does not support multiple interfaces (but neither does pccardd,
# it shouldn't be too big a deal :-)
#
device "USB ethernet"
devname "([ackr]u|ax)e[0-9]+"
attach "/etc/pccard_ether ${DEVNAME} start"
detach "/etc/pccard_ether ${DEVNAME} stop"
# This entry starts the ColdSync tool in daemon mode. Make sure you have an up
# to date /usr/local/etc/palms. We override the 'listen' settings for port and
# type in /usr/local/etc/coldsync.conf.
@ -41,13 +32,6 @@ device "Handspring Visor"
release 0x0100
attach "/usr/local/bin/coldsync -md -p /dev/${DEVNAME} -t usb"
# The entry below starts moused when a mouse is plugged in. Moused
# stops automatically (actually it bombs :) when the device disappears.
#
device "Mouse"
devname "ums[0-9]+"
attach "/etc/rc.d/moused start ${DEVNAME}"
# The fallthrough entry: Nothing is specified, nothing is done. And it isn't
# necessary at all :-). Just for pretty printing in debugging mode.
#