Date: Wed, 10 Nov 2004 20:56:08 -0500 (EST) From: Anish Mistry <amistry@am-productions.biz> To: FreeBSD-gnats-submit@freebsd.org Cc: freebsd-usb@freebsd.org Subject: Move the last stuff out of usbd.conf Message-ID: <200411110156.iAB1u8hf078155@www.united-ware.com>
next in thread | raw e-mail | index | archive | help
>Submitter-Id: current-users >Originator: Anish Mistry >Organization: AM Productions >Confidential: no >Synopsis: Move the last stuff out of usbd.conf >Severity: non-critical >Priority: medium >Category: conf >Class: change-request >Release: FreeBSD 6.0-CURRENT >Environment: System: FreeBSD littleguy 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Tue Nov 9 21:41:14 EST 2004 root@littleguy:/usr/obj/usr/src/sys/LITTLEGUY i386 >Description: Transfer the last stuff out of usbd.conf since it has been superceeded by devd.conf >How-To-Repeat: >Fix: --- devd.conf.patch begins here --- --- /usr/src/etc/devd.conf Tue Nov 9 17:17:58 2004 +++ /etc/devd.conf Wed Nov 10 17:35:45 2004 @@ -66,6 +66,42 @@ action "kbdcontrol -k /dev/kbd0 < /dev/console"; }; +# New USB mouse available +attach 100 { + device-name "ums[0-9]+"; + action "/etc/rc.d/moused start $device-name"; +}; +# This won't do anything until moused no longer bails out when a device disappears, +# but this will make it future safe if this "feature" is ever fixed +detach 100 { + device-name "ums[0-9]+"; + action "/etc/rc.d/moused stop $device-name"; +}; + +# ActiveWire board, firmware download +attach 100 { + match "vendor" "0x0854"; + match "product" "0x0100"; + match "release" "0x0000"; + action "/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex $device-name"; +}; + +# Firmware download for Entrega Serial DB25 adapter. +attach 100 { + match "vendor" "0x8001"; + match "product" "0x1645"; + match "release" "0x0101"; + action "if ! kldstat -n usio > /dev/null 2>&1 ; then kldload usio; fi ; /usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/$device-name"; +}; + +attach 100 { + device-name "ucom[0-9]+"; + match "vendor" "0x082d"; + match "product" "0x0100"; + match "release" "0x0100"; + action "/usr/local/bin/coldsync -md -p /dev/$device-name -t usb"; +}; + # # Rescan scsi device-names on attach, but not detach. # --- devd.conf.patch ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411110156.iAB1u8hf078155>