This initrd.gz mod lets the user choose whether or not to load the PCMCIA modules before the USB ones with the use of the 'usbcard' boot option. (I thought I had posted this mod to the forum, but I can't seem to find it)
My mod in the 'init' script is the code between the '#----------------' lines.
Code: Select all
####LOAD MODULES###########################################
# Load kernel modules:
echo "Loading kernel modules..."
#base module for scsi (and usb)...
[ -f /lib/modules/${KERNVER}/scsi_mod.ko ] && insmod /lib/modules/${KERNVER}/scsi_mod.ko
#...builtin to my 2.6.16.7, but leave this line for other kernels.
#----------------
#if boot option 'usbcard' then load PCMCIA modules now
#this will allow booting from USB flash pen through USB2 adapter card
if [ ! "`grep -i "usbcard" /proc/cmdline`" = "" ];then
insmod /lib/modules/${KERNVER}/rsrc_nonstatic.ko
insmod /lib/modules/${KERNVER}/yenta_socket.ko
echo "Detecting USB2 adapter card..."
sleep 2
fi
#----------------
#/usr/share/pci.ids is cutdown with only usb info...
No other modification (like modifying rc.modules) is necessary.
EDIT: I can't seem to attach the file here either, so I'll use a file server instead...
http://www.mysharefile.com/v/1289380/in ... rd.gz.html
Use the boot option like this:
boot: puppy PMEDIA=usbflash usbcard
Feedback welcome
Paul