to make sure a module is not loaded : /etc/hotplug/blacklist
to disable IPv6 : add blacklist ipv6 to /etc/modprobe.d/blacklist. Another way of doing that is to turn off net-pf10 in /etc/modprobe.d/aliases: alias net-pf-10 off.
to get information on a module: /sbin/modinfo <name>
Building custom kernels
In /usr/src/linux-x.x.x
make-kpkg (included in the kernel-package).
make menuconfig (requires ncurses-devel)
make-kpkg clean
make-kpkg -rev Custom.N kernel_image
if you need an initrd: make-kpkg --initrd kernel_image -rev Custom.N !!!
create kernel_image-x.x.x_Custom.N_i386.deb where x.x.x is the Linux kernel nb
to append text to version: make-kpkg --append-to-version -blah
dpkg --install /usr/src/kernel_image.....deb
runs LILO (or grub)
installs the customer kernel in /boot/vmlinuz-Custom.N
sets appropriate links (reads all kernels in /boot)