How to replace a module in bootnet/bootdisk

First find out what modules exist in the current bootnet/bootdisk
______________________________________________________________________________
sh list.modules.bootdisk.sh bootnet.img
The modules on bootnet.img are
-rw-r--r--   1 root     root        37116 Feb 11 15:01 2.4.20-28.7BOOT/3c59x.o
-rw-r--r--   1 root     root        26940 Feb 11 15:01 2.4.20-28.7BOOT/8139too.o-rw-r--r--   1 root     root         9732 Feb 11 15:01 2.4.20-28.7BOOT/8390.o
-rw-r--r--   1 root     root        28944 Feb 11 15:01 2.4.20-28.7BOOT/eepro100.o
-rw-r--r--   1 root     root        69961 Feb 11 15:01 2.4.20-28.7BOOT/lockd.o
-rw-r--r--   1 root     root         5096 Feb 11 15:01 2.4.20-28.7BOOT/mii.o
-rw-r--r--   1 root     root         9512 Feb 11 15:01 2.4.20-28.7BOOT/ne2k-pci.o
-rw-r--r--   1 root     root        93987 Feb 11 15:01 2.4.20-28.7BOOT/nfs.o
-rw-r--r--   1 root     root        22496 Feb 11 15:01 2.4.20-28.7BOOT/pcnet32.o-rw-r--r--   1 root     root        89786 Feb 11 15:01 2.4.20-28.7BOOT/scsi_mod.o
-rw-r--r--   1 root     root        92293 Feb 11 15:01 2.4.20-28.7BOOT/sunrpc.o
-rw-r--r--   1 root     root        50970 Feb 11 15:01 2.4.20-28.7BOOT/tulip.o
-rw-r--r--   1 root     root        55859 Feb 11 15:01 2.4.20-28.7BOOT/usb-storage.o
1162 blocks
_______________________________________________________________________________

Then we need to know what modules we have available to add

-------------------------------------------------------------------------------

[root@yort customfloppy]# sh list.modules.driverdisk.sh drvnet.img
The modules on drvnet.img are 
-rw-r--r--   1 root     root        10508 Feb 11 15:02 2.4.20-28.7BOOT/3c501.o
-rw-r--r--   1 root     root         9320 Feb 11 15:02 2.4.20-28.7BOOT/3c503.o
-rw-r--r--   1 root     root        24084 Feb 11 15:02 2.4.20-28.7BOOT/3c505.o
-rw-r--r--   1 root     root        11268 Feb 11 15:02 2.4.20-28.7BOOT/3c507.o
-rw-r--r--   1 root     root        14804 Feb 11 15:02 2.4.20-28.7BOOT/3c509.o
-rw-r--r--   1 root     root        20212 Feb 11 15:02 2.4.20-28.7BOOT/3c515.o
-rw-r--r--   1 root     root        20120 Feb 11 15:02 2.4.20-28.7BOOT/82596.o
-rw-r--r--   1 root     root         9732 Feb 11 15:02 2.4.20-28.7BOOT/8390.o
-rw-r--r--   1 root     root         6068 Feb 11 15:02 2.4.20-28.7BOOT/abyss.o
-rw-r--r--   1 root     root         6740 Feb 11 15:02 2.4.20-28.7BOOT/ac3200.o
-rw-r--r--   1 root     root       245272 Feb 11 15:02 2.4.20-28.7BOOT/acenic.o
-rw-r--r--   1 root     root        34496 Feb 11 15:02 2.4.20-28.7BOOT/arlan.o
-rw-r--r--   1 root     root         9432 Feb 11 15:02 2.4.20-28.7BOOT/at1700.o
-rw-r--r--   1 root     root        20628 Feb 11 15:02 2.4.20-28.7BOOT/cs89x0.o
-rw-r--r--   1 root     root        51668 Feb 11 15:02 2.4.20-28.7BOOT/de4x5.o
-rw-r--r--   1 root     root         9544 Feb 11 15:02 2.4.20-28.7BOOT/de600.o
-rw-r--r--   1 root     root        17660 Feb 11 15:02 2.4.20-28.7BOOT/de620.o
-rw-r--r--   1 root     root        19772 Feb 11 15:02 2.4.20-28.7BOOT/depca.o
-rw-r--r--   1 root     root       133400 Feb 11 15:02 2.4.20-28.7BOOT/dgrs.o
-rw-r--r--   1 root     root        20496 Feb 11 15:02 2.4.20-28.7BOOT/dmfe.o
-rw-r--r--   1 root     root        70932 Feb 11 15:02 2.4.20-28.7BOOT/e1000.o
-rw-r--r--   1 root     root        63317 Feb 11 15:02 2.4.20-28.7BOOT/e100.o
-rw-r--r--   1 root     root         5880 Feb 11 15:02 2.4.20-28.7BOOT/e2100.o
-rw-r--r--   1 root     root        16776 Feb 11 15:02 2.4.20-28.7BOOT/eepro.o
-rw-r--r--   1 root     root        15344 Feb 11 15:02 2.4.20-28.7BOOT/eexpress.o
-rw-r--r--   1 root     root        19664 Feb 11 15:02 2.4.20-28.7BOOT/epic100.o
-rw-r--r--   1 root     root         5788 Feb 11 15:02 2.4.20-28.7BOOT/es3210.o
-rw-r--r--   1 root     root        13124 Feb 11 15:02 2.4.20-28.7BOOT/eth16i.o
-rw-r--r--   1 root     root        23484 Feb 11 15:02 2.4.20-28.7BOOT/ewrk3.o
-rw-r--r--   1 root     root        22208 Feb 11 15:02 2.4.20-28.7BOOT/hamachi.o
-rw-r--r--   1 root     root        21300 Feb 11 15:02 2.4.20-28.7BOOT/hp100.o
-rw-r--r--   1 root     root         6348 Feb 11 15:02 2.4.20-28.7BOOT/hp.o
-rw-r--r--   1 root     root         6016 Feb 11 15:02 2.4.20-28.7BOOT/hp-plus.o
-rw-r--r--   1 root     root        22100 Feb 11 15:02 2.4.20-28.7BOOT/ibmtr.o
-rw-r--r--   1 root     root        13976 Feb 11 15:02 2.4.20-28.7BOOT/lance.o
-rw-r--r--   1 root     root        20140 Feb 11 15:02 2.4.20-28.7BOOT/lanstreamer.o
-rw-r--r--   1 root     root         6692 Feb 11 15:02 2.4.20-28.7BOOT/lne390.o
-rw-r--r--   1 root     root         5096 Feb 11 15:02 2.4.20-28.7BOOT/mii.o
-rw-r--r--   1 root     root        25240 Feb 11 15:02 2.4.20-28.7BOOT/natsemi.o
-rw-r--r--   1 root     root         6668 Feb 11 15:02 2.4.20-28.7BOOT/ne3210.o
-rw-r--r--   1 root     root         8980 Feb 11 15:02 2.4.20-28.7BOOT/ne.o
-rw-r--r--   1 root     root        10040 Feb 11 15:02 2.4.20-28.7BOOT/ni5010.o
-rw-r--r--   1 root     root        14944 Feb 11 15:02 2.4.20-28.7BOOT/ni52.o
-rw-r--r--   1 root     root        13852 Feb 11 15:02 2.4.20-28.7BOOT/ni65.o
-rw-r--r--   1 root     root        18912 Feb 11 15:02 2.4.20-28.7BOOT/ns83820.o
-rw-r--r--   1 root     root        23396 Feb 11 15:02 2.4.20-28.7BOOT/olympic.o
-rw-r--r--   1 root     root        28360 Feb 11 15:02 2.4.20-28.7BOOT/parport.o
-rw-r--r--   1 root     root        20244 Feb 11 15:02 2.4.20-28.7BOOT/parport_pc.o
-rw-r--r--   1 root     root        16708 Feb 11 15:02 2.4.20-28.7BOOT/plip.o
-rw-r--r--   1 root     root        19480 Feb 11 15:02 2.4.20-28.7BOOT/sis900.o
-rw-r--r--   1 root     root       158869 Feb 11 15:02 2.4.20-28.7BOOT/sk98lin.o
-rw-r--r--   1 root     root        10460 Feb 11 15:02 2.4.20-28.7BOOT/smc9194.o
-rw-r--r--   1 root     root         5368 Feb 11 15:02 2.4.20-28.7BOOT/smc-ultra32.o
-rw-r--r--   1 root     root         6256 Feb 11 15:02 2.4.20-28.7BOOT/smc-ultra.o
-rw-r--r--   1 root     root        21464 Feb 11 15:02 2.4.20-28.7BOOT/sundance.o
-rw-r--r--   1 root     root        23952 Feb 11 15:02 2.4.20-28.7BOOT/sunhme.o
-rw-r--r--   1 root     root        55476 Feb 11 15:02 2.4.20-28.7BOOT/tg3.o
-rw-r--r--   1 root     root        33896 Feb 11 15:02 2.4.20-28.7BOOT/tlan.o
-rw-r--r--   1 root     root        49692 Feb 11 15:02 2.4.20-28.7BOOT/tms380tr.o
-rw-r--r--   1 root     root         4848 Feb 11 15:02 2.4.20-28.7BOOT/tmspci.o
-rw-r--r--   1 root     root        45365 Feb 11 15:02 2.4.20-28.7BOOT/tulip_old.o
-rw-r--r--   1 root     root        21392 Feb 11 15:02 2.4.20-28.7BOOT/via-rhine.o
-rw-r--r--   1 root     root        25348 Feb 11 15:02 2.4.20-28.7BOOT/wavelan.o
-rw-r--r--   1 root     root         7220 Feb 11 15:02 2.4.20-28.7BOOT/wd.o
-rw-r--r--   1 root     root        21404 Feb 11 15:02 2.4.20-28.7BOOT/winbond-840.o
-rw-r--r--   1 root     root        17804 Feb 11 15:02 2.4.20-28.7BOOT/yellowfin.o
3474 blocks
______________________________________________________________________________

So now we need to do the actual replacement.  We see that usb-storage is about
the right size and we do not need it for our application so we will remove it 
so that we can add e1000.

./custom-modules.pl-1.9 -d usb-storage -a e1000

------------------------------------------------------------------------------
A ls listing of directory

Note the bootdisk.img to bootnet.img link

lrwxrwxrwx    1 root     root           11 Feb 13 14:10 bootdisk.img -> bootnet.img
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 boot.img
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 bootnet.img
-rwxr-xr-x    1 root     root          451 Nov 25 16:40 cp.modules.bootdisk
-rwxr-xr-x    1 root     root          453 Nov 25 16:43 cp.modules.driverdisk
-rw-r--r--    1 root     root      1474560 Feb 13 14:18 custom.img
-rwxr-xr-x    1 root     root        24285 Nov 25 18:08 custom-modules.pl-1.9
-rwxr-xr-x    1 root     root        24015 Nov 24 15:45 custom-modules.pl-1.9.older
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 drvblock.img
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 drvnet.img
-rwxr-xr-x    1 root     root          377 Jan 22 15:40 list.modules.bootdisk.sh-rwxr-xr-x    1 root     root          273 Jan 22 15:41 list.modules.driverdisk.sh
-rw-r--r--    1 root     root          206 Nov 25 13:37 make.new.bootdisk.sh
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 oldcdrom.img
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 pcmciadd.img
-rw-r--r--    1 root     root      1474560 Feb 13 14:09 pcmcia.img
-rw-r--r--    1 root     root           48 Feb 13 14:19 README
