title: How to detect connection of usb device to trigger a shell script?
body: <p>My end goal is this: </p>
  
  <p>when a specific usb drive gets connected to the system, I need to delete a file from that device and then copy a file from a different directory into the device, then eject the usb drive. All the file copying and such can be done through a shell script, but how could I trigger the script upon connection of  the usb drive?</p>