1 |
On Mon, May 14, 2012 at 06:23:36PM -0700, Greg KH wrote |
2 |
|
3 |
> So you need to implement stuff such that you are not dependant on the |
4 |
> bus type. If you see a new disk, act on it, it's that simple. |
5 |
> |
6 |
> But note, please do not be automounting disks from uevents directly. |
7 |
|
8 |
After some more Google-searching. it looks like the "official |
9 |
channels" way is via /etc/mdev.conf. Note that this is on a system with |
10 |
busybox[mdev] and no udev. /etc/mdev.conf has a rudimentary set of |
11 |
"mdev rules" abilities, and most importantly, it can also call external |
12 |
executables (scripts/programs/whatever). On my mdev based machines... |
13 |
|
14 |
$ cat /proc/sys/kernel/hotplug |
15 |
/sbin/mdev |
16 |
|
17 |
> Actually with all the hype about mdev these days, why not just use a 3 |
18 |
> year old version of udev (or maybe 4), that is probably what mdev is at |
19 |
> as far as functionality goes. Why not just fork udev from then and go |
20 |
> forward from that? What exactly are you not liking in udev that makes |
21 |
> you want to get rid of it so badly? What is it doing that bothers |
22 |
> people so much? |
23 |
|
24 |
Unfortunately, I am not a C programmer, so forking udev is only a |
25 |
dream. As Maxim has pointed out, mdev does what most people need. The |
26 |
busybox people do the maintenance. Given their target audience |
27 |
(embedded and lightweight systems), we can be certain that mdev won't |
28 |
grow into a monstrosity. Even if I could do it, why reinvent the wheel? |
29 |
We have a perfectly usable alternative right now in mdev. |
30 |
|
31 |
My main programming strength is bash scripts etc. Actually, a "fork" |
32 |
I'd be interested in would be to take standard Gentoo and replace as |
33 |
many programs as possible with their busybox-symlink equivalants. This |
34 |
would require at least a new profile, to |
35 |
a) create the appropriate symlinks, and |
36 |
b) not pull in the standalone versions. |
37 |
|
38 |
-- |
39 |
Walter Dnes <waltdnes@××××××××.org> |