summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2008-09-08 03:46:33 +0000
committerSteve Arnold <nerdboy@gentoo.org>2008-09-08 03:46:33 +0000
commitd9223abe0ec0d5847e54855b93aa5e66fa972fc2 (patch)
tree4baa7f12180ccf434cf24872784091ba8b871d08 /sci-geosciences/gpsd/files
parentMake repoman happy. (diff)
downloadgentoo-2-d9223abe0ec0d5847e54855b93aa5e66fa972fc2.tar.gz
gentoo-2-d9223abe0ec0d5847e54855b93aa5e66fa972fc2.tar.bz2
gentoo-2-d9223abe0ec0d5847e54855b93aa5e66fa972fc2.zip
updated motif depend and added udev rule enhancements (see bug 235855)
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.1 x86_64)
Diffstat (limited to 'sci-geosciences/gpsd/files')
-rw-r--r--sci-geosciences/gpsd/files/99-gpsd-usb.rules16
1 files changed, 13 insertions, 3 deletions
diff --git a/sci-geosciences/gpsd/files/99-gpsd-usb.rules b/sci-geosciences/gpsd/files/99-gpsd-usb.rules
index 592b509314b8..f4ad08fa40e4 100644
--- a/sci-geosciences/gpsd/files/99-gpsd-usb.rules
+++ b/sci-geosciences/gpsd/files/99-gpsd-usb.rules
@@ -1,9 +1,19 @@
-# udev rules for the gpsd USB hotplugging (without hotplug)
+# udev rules for the gpsd USB hotplugging
SUBSYSTEM!="tty", GOTO="gpsd-usb_rules_end"
-ACTION!="add", GOTO="gpsd-usb_rules_end"
-KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+SYSFS{idVendor}=="067b", SYSFS{idProduct}=="2303", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+SYSFS{idVendor}=="067b", SYSFS{idProduct}=="2303", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd.hotplug remove $root/%k"
+SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd.hotplug remove $root/%k"
+SYSFS{idVendor}=="1163", SYSFS{idProduct}=="0100", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+SYSFS{idVendor}=="1163", SYSFS{idProduct}=="0100", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd.hotplug remove $root/%k"
+SYSFS{idVendor}=="067b", SYSFS{idProduct}=="aaa0", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+SYSFS{idVendor}=="067b", SYSFS{idProduct}=="aaa0", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd.hotplug remove $root/%k"
+SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd.hotplug remove $root/%k"
+#SYSFS{idVendor}=="", SYSFS{idProduct}=="", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
+#SYSFS{idVendor}=="", SYSFS{idProduct}=="", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd.hotplug remove $root/%k"
LABEL="gpsd-usb_rules_end"