usb hotplug Q
From: Kamus of Kadizhar (yan_at_NsOeSiPnAeMr.com)
Date: Sat, 12 Jun 2004 07:28:33 -0400
I have 2 digital cameras. One is an olympus, and the other is a pentax.
I would like to add scripts to /etc/hotplug that do the following:
when a camera is plugged in
mv /mnt/camera/dcim/*/* /home/$camera/$date
I can't seem to get a grasp on how hotplug works. The above should be
simple - ID the device that's plugged in, based on that, run a script.
But I can't figure out how hotplug picks what script to run....
Any docs out there? Any hints, howtos?
-- o__ | May your trails be dim, lonesome, stony, narrow, winding and ,>/'_ | only slightly uphill. May the wind bring rain for the slickrock (_)\(_) | potholes fourteen miles on the other side of yonder blue ridge. | May God's dog serenade your campfire, may the rattlesnake and o | the screech owl amuse your reveries, may the Great Sun dazzle > | your eyes by day and the Great Bear watch over you at night. /\ | \ \ | - Edward Abbey, Beyond the Wall