From: william <kc@cobradevil.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev rule matching using ENV
Date: Wed, 27 Jul 2011 04:48:40 +0000 [thread overview]
Message-ID: <4E2F98A8.2040909@cobradevil.org> (raw)
In-Reply-To: <4E2F1236.8050500@cobradevil.org>
On 07/26/2011 10:35 PM, Kay Sievers wrote:
> On Tue, Jul 26, 2011 at 21:18, william<kc@cobradevil.org> 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-07-27 4:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 19:15 udev rule matching using ENV william
2011-07-26 19:18 ` william
2011-07-26 20:35 ` Kay Sievers
2011-07-27 4:48 ` william [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E2F98A8.2040909@cobradevil.org \
--to=kc@cobradevil.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).