>Slackware does the same.
Distributions that want to do something different for devfs
can parse /proc/mounts, or, less reliably, do statfs("/dev", &statfs_buf)
and look at statfs_buf.f_type. So, you still have this ability without
the need for additional kernel code.
It's worth noting that some devfs users may want the non-devfs
behavior (which I assume means creating /dev files during some
installation process) because they may have a script to save /dev
before shutdown and restore their additional /dev nodes at boot, so
you probably want to centralize this decision in some little script
anyhow. The devfsd (for the stock devfs) has a couple of commands
designed for this, although this can just as easily be done in scripts
for boot and shutdowns.
Also, I suppose that checking for /dev/.devfsd is an easy way
to detect _which_ devfs you are using, although I don't know if such a
check is useful, since you could start devfsd unconditionally and it
should just exit if the old devfs is not present.
Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/