From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Martin Date: Sun, 29 Jul 2007 15:07:07 +0000 Subject: udev + modprobe Message-Id: <46ACAD1B.7090705@dodgit.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org (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