On 07/26/2011 10:35 PM, Kay Sievers wrote:
On Tue, Jul 26, 2011 at 21:18, william<kc@xxxxxxxxxxxxxx> wrote:
i am trying to create a udev rule which executes a script whenever a usb
stick is removed with a particular uuid
So i created 99-remove-usb.rules with the following contents
IMPORT{program}="/usr/local/bin/usb-stick-uuid.sh"
ACTION=="remove", ENV{ID_FS_UUID}=="ENV{MY_UUID}",
But it does never match.
ENV{ID_FS_UUID}=="$env{MY_UUID}" ?
no match with the $env{MY_UUID}
When i remove this match so it will execute the script i do get the
MY_UUID in the environment so i know it gets filled.
Also visible when using:
udevadm test --action=remove /block/sdb
William
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html