linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Martin <spam@dodgit.com>
To: linux-hotplug@vger.kernel.org
Subject: udev + modprobe
Date: Sun, 29 Jul 2007 15:07:07 +0000	[thread overview]
Message-ID: <46ACAD1B.7090705@dodgit.com> (raw)

(seems my last message didn't get through...)

Hello,

I am trying to make udev load required modules as devices are plugged
in, so I wrote this rule:

ATTR{modalias}="?*", ACTION="add", RUN+="/sbin/modprobe $env{MODALIAS}"

However, when I plug in a USB drive, nothing happens. But now comes the
weird bit: If I save MODALIAS to a file (with the same rule, only a
modified command) and later run modprobe manually, it loads usb-storage
just fine!

This happens with udev-106 and Busybox 1.4.2, as installed by ptxdist
(an embedded userland builder). udev itself is working fine and creates
the correct device nodes if the modules are already loaded. Any ideas
what my problem could be?


Thanks,
Oliver




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2007-07-29 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-29 15:07 Oliver Martin [this message]
2007-07-29 19:23 ` udev + modprobe Kay Sievers
2007-07-29 22:08 ` Oliver Martin

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=46ACAD1B.7090705@dodgit.com \
    --to=spam@dodgit.com \
    --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).