Discussion:
[patch] add udev
Richard Kennedy
2006-04-04 11:36:45 UTC
Permalink
Hi,

This patch adds basic udev support for the prism2_usb.
It adds
- wlan-udev.sh to etc/wlan & updates the Makefile install rule

- patches shared to skip some un-necessary checks when run from
wlan_udev.sh

- adds an example udev rule to etc/udev/rules.d

It works for me on Fedora FC5.

Things still to do :

- udev rules for other interfaces pci,etc - I haven't done these as I
can't test them but they should just be able follow the basic pattern.

- Install the udev rule --
I'm not sure the best way of doing this. Should there be a separate make
udevinstall option?

Anyone else out there using udev yet?
All feedback and suggestions very welcome :)

cheers

Richard
Gee, David
2006-04-04 13:56:50 UTC
Permalink
Richard,

Sorry, I did mean to reply to you, things have been a little hectic. I tried
out the patches you sent me previously and they work very nicely on FC5 -
thanks!

Do all linux distros out there support udev yet, or are some still
supporting hotplug only? If it's the former, then it would be nice to remove
the hotplug support completely and move over to udev as it does seem to be a
much cleaner and easier way to do things.


Regards,
David


-----Original Message-----
From: linux-wlan-devel-***@lists.linux-wlan.com
[mailto:linux-wlan-devel-***@lists.linux-wlan.com] On Behalf Of Richard
Kennedy
Sent: 04 April 2006 06:37
To: wlan-devel
Subject: [lwlan-devel] [patch] add udev

Hi,

This patch adds basic udev support for the prism2_usb.
It adds
- wlan-udev.sh to etc/wlan & updates the Makefile install rule

- patches shared to skip some un-necessary checks when run from wlan_udev.sh

- adds an example udev rule to etc/udev/rules.d

It works for me on Fedora FC5.

Things still to do :

- udev rules for other interfaces pci,etc - I haven't done these as I can't
test them but they should just be able follow the basic pattern.

- Install the udev rule --
I'm not sure the best way of doing this. Should there be a separate make
udevinstall option?

Anyone else out there using udev yet?
All feedback and suggestions very welcome :)

cheers

Richard
Solomon Peachy
2006-04-04 14:37:18 UTC
Permalink
Post by Gee, David
Do all linux distros out there support udev yet, or are some still
supporting hotplug only? If it's the former, then it would be nice to remove
the hotplug support completely and move over to udev as it does seem to be a
much cleaner and easier way to do things.
We can't "remove hotplug" support, as that'll break everything else.
linux-wlan-ng still tries to support anything that uses a 2.4 kernel, to
say nothing of older 2.6 kernels.

Basically we need a build-time test to see if udev or hotplug should be
used, and then go with that.

- Solomon
--
Solomon Peachy ***@linux-wlan.com
AbsoluteValue Systems http://www.linux-wlan.com
721-D North Drive +1 (321) 259-0737 (office)
Melbourne, FL 32934 +1 (321) 259-0286 (fax)
Richard Kennedy
2006-04-05 08:44:50 UTC
Permalink
Post by Solomon Peachy
Post by Gee, David
Do all linux distros out there support udev yet, or are some still
supporting hotplug only? If it's the former, then it would be nice to remove
the hotplug support completely and move over to udev as it does seem to be a
much cleaner and easier way to do things.
We can't "remove hotplug" support, as that'll break everything else.
linux-wlan-ng still tries to support anything that uses a 2.4 kernel, to
say nothing of older 2.6 kernels.
Basically we need a build-time test to see if udev or hotplug should be
used, and then go with that.
- Solomon
I don't think there are any major code changes needed to support udev --
we could optimise out the calls sending the wlan custom hotplug
messages, but as they're only on called on load & unload the impact
won't be great.
The changes I made to shared should not change it's behaviour for the
hotplug case (unless I messed up). I would be nice if someone still
using hotplug could try using the patched shared and verify that it
still works.
Cheers
Richard

Loading...