Do you have hotplug support compiled into the kernel? Ciao,
Duncan. On Tuesday 25 June 2002 10:40 am, Sven Haberer wrote: > Hi, > > this might be a stupid question, but I have tried in vain to find an answer > to my problem in the docs and am thus hoping somebody can help me in this > forum. > > Having a nice new digital camera using usb-mass-storage, I of course want > to access it from my linux box running Suse 7.3. > The camera is nicely recognized and I can mount it perfectly by hand, > allowing me access the camera (so far so good). > > Now the problem: > How can I persuade hotplug to execute a script upon connection, mounting > the camera automatically and unmounting it upon disconnect ? > > My "/etc/hotplug/usb.usermap" looks as follows: > > --- > mountolympus 0x0 0x07b4 0x0102 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 > --- > > Extract of "lsusb": > > --- > Bus 001 Device 005: ID 07b4:0102 Olympus Optical Co., Ltd. > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 Interface > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x07b4 Olympus Optical Co., Ltd. > idProduct 0x0102 > bcdDevice 10.54 > iManufacturer 1 OLYMPUS > iProduct 2 C2Z,D520Z,C220Z > --- > > Finally I have the following script > > --- > ll /etc/hotplug/usb/mountolympus > -rwxr-xr-x 1 root root 106 Jun 25 10:32 > /etc/hotplug/usb/mountolympus > --- > > but this script is not executed... > > What am I doing wrong ? Do I need to restart something after changing the > files ? > > ThanX a lot in advance, > Sven > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > [EMAIL PROTECTED] > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-users ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
