From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] Run a custom script after USB mount
Date: Thu, 23 Apr 2015 21:56:29 +0200 [thread overview]
Message-ID: <55394E6D.8000404@mind.be> (raw)
In-Reply-To: <CADKZYYJrtTdn_47NCJumggetKmoHt7sAbk5-a9X_zHrMVJdYHA@mail.gmail.com>
On 04/23/15 05:02, Santhosh Ramani wrote:
> Hello Thomas,
>
> Thanks for your reply - I was able to use 'udevadm monitor' to look at udev
> events. Every time the USB is inserted, I do see udev messages indicate 'add'.
> These are the scripts and rules I have in the system - may be I'm doing
> something wrong here...
>
> I have added a rule in /etc/udev/rules.d/ and it has the following single line.
>
> /# cat /etc/udev/rules.d/99-usb-detection.rules/*
> SUBSYSTEM=="usb", ACTION=="add", KERNEL=="sda*", RUN+="/etc/hcc/usb-detected"*
If it's a scsi device, the subsystem is block, not usb, right?
Regards,
Arnout
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2015-04-23 19:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-17 15:21 [Buildroot] Run a custom script after USB mount Santhosh Ramani
2015-04-17 16:23 ` Lionel Orry
2015-04-17 16:37 ` Santhosh Ramani
2015-04-18 12:36 ` Thomas Petazzoni
2015-04-23 3:02 ` Santhosh Ramani
2015-04-23 3:44 ` Santhosh Ramani
2015-04-23 19:56 ` Arnout Vandecappelle [this message]
2015-04-23 23:04 ` Santhosh Ramani
2015-04-28 18:51 ` Arnout Vandecappelle
2015-04-29 3:01 ` Santhosh Ramani
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=55394E6D.8000404@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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