udev does not run program on remove
I am playing around with udev and automounting.
I put the following rule in /etc/udev/rules: Code:
BUS=="scsi",DRIVER=="sd",SYSFS{model}=="USB Disk ",SYSFS{vendor}=="Generic ",SYMLINK+="_usbdisk%n",RUN+="/etc/udev/scripts/automount" Code:
#!/bin/bash Quote:
Quote:
So what do I have to do in order to have my script run at removal as well? |
I think you need an ACTION="remove" that matches your other rule. I've not done this but I think thats how it's done.
ACTION="remove", SYSFS{model}=="USB Disk ", SYSFS{vendor}=="Generic ", RUN+="/etc/udev/scripts/automount" |
I've changed the rules to this:
Quote:
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 08:32 PM. |