Udev – action add – remove

How to modify linux attitude when plugging and unplugging some devices to run some scripts?
For example, it could be nice if plugging a particular usb drive starts a backup script. Let’s see.

>> Continua

2 Risposte

  1. are “UMni512MB*IOM2J4″ refer to all pebdrive model? or just one model only? thanks

  2. Hi Arie,
    UMni512MB*IOM2J4 is referred to a particular Iomega pendrive.
    You can discover your device name doing this:
    udevinfo -a -p $(udevinfo -q path -n /dev/sdb)
    where /dev/sdb is the usb device you plugged in

I commenti sono chiusi.