lkml.org 
[lkml]   [2011]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: How to blacklist a usb_storage device from attach to the usb_storage module
>>>>> "Uwe" == Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> writes:

Uwe> Hello, The STxxDiscovery Modules are affordable small boards with
...
Uwe> blacklisting there will need time to propagate to the kernel tree
Uwe> and back to the distributions. So a way to runtime blacklist is
Uwe> needed too.

To answer my own question, at least partial, with and udev Rule like
SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="0483", \
ATTRS{idProduct}=="3744", DRIVER=="usb-storage", \
RUN+="/bin/sh -c 'echo -n %k> %S%p/driver/unbind'"

as the first rule for the device, the device still binds to the driver but
as first action is unbinded.

Should such a device still be blacklisted in the kernel somehow?

--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


\
 
 \ /
  Last update: 2011-10-17 10:55    [W:0.111 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site