Welcome to the Linux Foundation Forum!

Catching usb event.

Hello,

What I want to do is waiting for a usb plug and mount the new device in a shell script.

Is there a easy mean to do that ?

Xavier.

Comments

  • Jinux
    Jinux Posts: 20
    It's possible with Udev and there's a brilliant guide Here detailing how to set it up. This shows you how to run external scripts/programs upon the event as opposed to simply giving the device a custom node.
  • XavierJ
    XavierJ Posts: 7
    Thank you very much for the udev tuto Jinux.
  • mfillpot
    mfillpot Posts: 2,177
    Jinux,
    Thank you for posting a link to that informative guide.

Categories

Upcoming Training