Instead of going to the trouble to hack up the hotplug script, why not do this:
1) Start your computer using the hotplug script
2)
lsmod - This will show you all of the modules that have been loaded by hotplug
3) Add the modules to /etc/rc.d/rc.modules
3a)
cp /etc/rc.d/rc.modules /etc/rc.d/rc.modules.orig you may want to back up the file first
4)
chmod +x /etc/rc.d/rc.modules to make sure that rc.modules is run at boot time
5)
chmod -x /etc/rc.d/rc.hotplug to make sure hotplug isn't run at boot time
6) reboot and make sure everything is still working
I beleive that another thing that slows down the boot time considerably is
ldconfig. You can get rid of that at boot time by opening up /etc/rc.d/rc.M and looking for the following:
Code:
# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
echo "Updating shared library links: /sbin/ldconfig"
/sbin/ldconfig
fi
Which can be changed to:
Code:
# Update all the shared library links:
#if [ -x /sbin/ldconfig ]; then
# echo "Updating shared library links: /sbin/ldconfig"
# /sbin/ldconfig
#fi
Of course, you'll then want to run ldconfig manually every once in awhile, like whenever you install new software or update anything.
You should search through the entire /etc/rc.d directory and take away executable permission from anything that you don't want run at boot time. THis will speed up your boot time and your computer as a whole, since you won't be starting and running services that you don't want. Be careful, though, you'll want to make sure that you don't need the file, first. I recommend 1 file at a time, then reboot if you aren't sure. Keep a boot disk handy in case you need to change the executable permission back on.