mdev with USB wifi adapters
Denys Vlasenko
vda.linux at googlemail.com
Sat May 19 20:25:21 UTC 2012
On Friday 18 May 2012 18:28, Christoph Lohmann wrote:
> Greetings.
>
> After spending some hours rewriting my init scripts in the rage because
> some assholes decided to move /lib/firmware to /usr/lib/firmware, here’s
> my answer:
>
> On Fri, 18 May 2012 18:28:44 +0200 Denys Vlasenko <vda.linux at googlemail.com> wrote:
> > (1) what if devname itself has slashes? Like this:
> > ACTION=add
> > BUSNUM=001
> > DEVICE=/proc/bus/usb/001/003
> > DEVNAME=bus/usb/001/003 <============ !!!
> > DEVNUM=003
> > DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-5
> > DEVTYPE=usb_device
> > MAJOR=189
> > MINOR=2
> > PRODUCT=18d1/4e12/227
> > SUBSYSTEM=usb
> > TYPE=0/0/0
>
> The examples you mentioned are only rarely executed, so they could easi‐
> ly replaced with:
>
> $SUBSYSTEM=scsi root:disk 660 @/lib/mdev/scsidev
>
> Then the environment is handled in that script.
Well, we can easily take it to the extreme and make mdev call
the same script for all hotplug actions. As a nice bonus,
mdev.conf will be much simpler: just one line with script name ;)
It would work too, but I suspect no one would like it :)
I feel having device hotplug configuration smeared across
mdev.conf and a bunch of scripts (with two different formats)
is less convenient than having them in one place - mdev.conf.
--
vda
More information about the busybox
mailing list