N810 - executing script when digital camera is plugged in and mounted

2009-10-08 Thread Frederik Vanrenterghem
Hi all, I would like to execute a script that copies the pictures from my digital camera when it's plugged into my nokia tablet. The script functions correctly when executed from the command-line after plugging in the camera. Adding the following rule to /etc/udev/rules.d/zz99_camera.rules works

Re: N810 - executing script when digital camera is plugged in and mounted

2009-10-08 Thread Adrián Yanes
Try yo exclude your camera for automount. Then include in your script the command mount and after done ( you can obtain some scripts for detect the partition without automount). Probably works, because I think that your problem it's desynchronization, in one way you are mouting and in the other

Re: N810 - executing script when digital camera is plugged in and mounted

2009-10-08 Thread Frederik Vanrenterghem
Sounds sensible indeed. How do I actually prevent the automount though? I have tried figuring this out with udevmonitor, but can't really tell what's happening. It seems my script gets run somewhere in the middle of the following sequence, instead of at the end: UEVENT[1255026948.392547] add

Re: N810 - executing script when digital camera is plugged in and mounted

2009-10-08 Thread Adrián Yanes
Plese post your script in pastebin or similar and paste the URL. 2009/10/8 Frederik Vanrenterghem frede...@vanrenterghem.biz Sounds sensible indeed. How do I actually prevent the automount though? I have tried figuring this out with udevmonitor, but can't really tell what's happening. It

Re: N810 - executing script when digital camera is plugged in and mounted

2009-10-08 Thread Kimmo Hämäläinen
On Thu, 2009-10-08 at 12:20 +0200, ext Frederik Vanrenterghem wrote: Hi all, I would like to execute a script that copies the pictures from my digital camera when it's plugged into my nokia tablet. The script functions correctly when executed from the command-line after plugging in the