modprobe2()
{
local x
+ local deps
+ local real_path
+ local modlist
+ local ret
+
if [ "$#" != "1" ]
then
echo "modprobe(): improper usage"
else
deps=""
fi
-# echo ""
# echo "$1 -- DEPS='${deps}'"
# Make sure we don't do any endless loops!
LOADED_MODULES="${LOADED_MODULES} ${1}"
-
for x in ${deps}
do
if ! is_module_already_loaded ${x}
then
if [ "${x}" != "" -a "${x}" != " " ]
then
+# echo "loading dep: ${x}"
modprobe2 "${x}"
fi
else
- echo "skipping ${x}, module already loaded by us"
+ filler=1
+# echo "skipping ${x}, module already loaded by us"
fi
done
# echo "running insmod on '${real_path}'"
${INSMOD} ${real_path} > /dev/null 2>&1
-
- return $?
+ ret=$?
+ if [ "$ret" -eq "0" ]
+ then
+ echo "module ${real_path} loaded"
+ fi
+ return $ret
}
usage
fi
+for x in `cat /modules.cache`
+do
+ LOADED_MODULES="${LOADED_MODULES} ${x}"
+done
+
modprobe2 ${1}
+
+[ -f "/modules.cache" ] && rm -f /modules.cache > /dev/null 2>&1
+for x in ${LOADED_MODULES}
+do
+ echo $x >> /modules.cache
+done
+
exit $?
-SCSI_MODULES="sd_mod sg sr_mod \
-aic7xxx aic7xxx_old BusLogic \
-ncr53c8xx NCR53c406a \
-initio advansys aha1740 aha1542 aha152x \
-atp870u dtc eata fdomain gdth \
-megaraid pas16 pci2220i pci2000 psi240i \
-qlogicfas qlogicfc qlogicisp \
-seagate t128 tmscsim u14-34f ultrastor wd7000 \
-a100u2w 3w-xxxx DAC960 NCR53c406a \
-aacraid sym53c8xx a100u2w cpqfc \
-dmx3191d dpt_i2o imm in2000 ips qla1280 \
-sim710 sym53c416"
+SCSI_MODULES="3w-xxxx dpt_i2o mptscsih mptctl aic79xx"
+#SCSI_MODULES="3w-xxxx sata_sil"
+#sata_sil sata_promise sata_via \
+#SCSI_MODULES="sd_mod sg sr_mod \
+#aic7xxx aic7xxx_old BusLogic \
+#ncr53c8xx NCR53c406a \
+#initio advansys aha1740 aha1542 aha152x \
+#atp870u dtc eata fdomain gdth \
+#pas16 pci2220i pci2000 psi240i \
+#seagate t128 tmscsim u14-34f ultrastor wd7000 \
+#3w-xxxx NCR53c406a \
+#sata_sil sata_via sata_promise"
+#sim710 sym53c416 \
+#sym53c8xx cpqfc \
+#dmx3191d dpt_i2o imm in2000 ips qla1280 \
+#qlogicfas qlogicfc qlogicisp \
FIREWIRE_MODULES="ieee1394 ohci1394 sbp2"