Code: Select all
mkdir /mnt/sdb1 mkdir ~/001 mount /dev/sdb1 /mnt/sdb1 lzm2dir /mnt/sdb1/ISOs/porteus/base/001-base.lzm ~/001 echo "blacklist rt2860sta" >> ~/001/etc/modprobe.d/blacklist.conf echo "blacklist rt2870sta" >> ~/001/etc/modprobe.d/blacklist.conf echo "modprobe rt2800usb" >> ~/001/etc/rc.d/rc.local dir2lzm ~/001 ~/001-base.lzm mv -f ~/001-base.lzm /mnt/sdb1/ISOs/porteus/base/
Now your "always fresh" setup will do this every time.
You could also do the above (up to the point of making a new 001-base module), and then make a new module with just the /etc/modprobe.d/blacklist.conf and /etc/rc.d/rc.local files (and parent directories), put that module in your porteus/optional folder, and use the load= cheatcode in your menu.lst to load it at startup. I would name it something like "zzz-rt2800load.lzm", so that this module is loaded last. That way, you could remove the load= cheatcode at boot time, and run this install of porteus on a machine that may have a conflict with this driver.
note--I'm still a newbie at this, so corrections/additions to the above are welcome
Edited to add:
An quick and easier fix would be to make your modifications to blacklist.conf and rc.local, and then copy them into /porteus/rootcopy, e.g. /mnt/sdb1/ISOs/porteus/rootcopy/etc/modprobe.d and /mnt/sdb1/ISOs/porteus/rootcopy/etc/rc.d. This would load the files when you boot up, even in "always fresh" mode, but you would lose the flexibility of the load= cheatcode.
thanks to fanthom for this tip! (I always wondered what the rootcopy directory was for )