Penguin

Differences between version 5 and predecessor to the previous major change of HotPlug.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 5 Last edited on Friday, June 25, 2004 9:51:58 am by BugBug Revert
Older page: version 4 Last edited on Wednesday, March 31, 2004 9:53:52 pm by JohnMcPherson Revert
@@ -23,9 +23,9 @@
  # laser printer 
  brother_hl1440 0x0003 0x04f9 0x000d 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
  
 So, when a USB device with vendor ID of 40a and product ID of 170 is inserted, hotplug will run the script named "usbcam" in the /etc/hotplug/usb directory. 
-The 0x0003 tells hotplug to match this rule against only the vendor ID (1) + the product ID (2), ignoring all the other fields. You can determine these values by looking at your system logs (eg run dmesg(8)) after inserting the [USB] device. 
+The 0x0003 tells hotplug to match this rule against only the vendor ID (1) + the product ID (2), ignoring all the other fields. These flags are defined in /etc/hotplug/usb.agent . You can determine the values for your device by looking at your system logs (eg run dmesg(8)) after inserting the [USB] device. 
 If you have the "usbutils" package installed, you could look in the file "/usr/share/misc/usb.ids" or run the "lsusb" command to get a description of connected USB devices. 
  
 See below for notes about the scripts. 
  
@@ -44,8 +44,10 @@
  PRODUCT 
  INTERFACE 
  TYPE 
 See the /etc/hotplug/usb.agent script for more details. 
+  
+Note that many of the script names in .../usb.distmap are actually module names.  
  
 ! Example scripts 
 This is the script run when hotplug detects one of the digital cameras. the gphoto2 package for [DigitalCamera]s comes with its own usbcam script for this purpose, but it sets the [USB] device to be owned by the user that owns /dev/console, which doesn't work under debian. This works fine assuming you are the only person on your computer, or you trust the other users not to delete your photos from your camera :p.