Re: [SOLVED] auto module loading with udev ?
On Wed, 22 Dec 2010 22:01:07 -0800
<briand@aracnet.com> wrote:
This will give you the /dev/pilot symlink which is very handy. I
already had this, in fact it may eve be in the /lib/udev/rules.d/
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \
ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld",
\ SYMLINK+="pilot"
The following provides, and removes, the module automagically.
The key is to match the "add" udev action (?):
SUBSYSTEMS=="usb", ACTION=="add", \
ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld",
\ RUN+="/sbin/modprobe visor"
SUBSYSTEMS=="usb", ACTION=="remove", \
ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld",
\ RUN+="/sbin/modprobe -r visor"
Got all that useful info courtesy of the following web-page, and I used
it verbatim.
http://math.umh.ac.be/an/D830/
Bonus! the page talks about using Debian :-)
All of this would be a whole lot easier if there was some sort of trace
that tells you what udev is doing, verbosely. udevadm monitor isn't
that useful.
Brian
Reply to: