Is there a neat around trick that takes something like
lsmod (from a
working machine) as input and produces a config based on that?
There is a procedure outlined in chapter 7 of LKN, but I am not sure
about how scriptable it is.
http://www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/ch07.pdf
It would certainly be a neat thing.
L