[Fai-commit] r6294 - trunk/examples/simple/class
Thomas Lange
lange at alioth.debian.org
Sat Feb 12 23:28:47 UTC 2011
Author: lange
Date: 2011-02-12 23:28:41 +0000 (Sat, 12 Feb 2011)
New Revision: 6294
Modified:
trunk/examples/simple/class/20-hwdetect.source
Log:
use pcimodules command to load kernel driver
Modified: trunk/examples/simple/class/20-hwdetect.source
===================================================================
--- trunk/examples/simple/class/20-hwdetect.source 2011-02-12 23:20:20 UTC (rev 6293)
+++ trunk/examples/simple/class/20-hwdetect.source 2011-02-12 23:28:41 UTC (rev 6294)
@@ -9,13 +9,11 @@
echo 0 > /proc/sys/kernel/printk
-# load all IDE drivers
-
-# DMA does not work if we load all modules in drivers/ide, so only try pci modules
-mod=$(find /lib/modules/$(uname -r)/kernel/drivers/ide/pci -type f | sed 's/\.ko$//' | sed 's/.*\///')
-for i in $mod; do
- modprobe $i 1>/dev/null 2>&1
+depmod -m
+for module in $(pcimodules) ; do
+ modprobe -s -k "$module"
done
+
# Booting from CD does not always enable DMA.
for d in $( echo /proc/ide/hd[a-z] 2>/dev/null); do
[ -d $d ] && echo "using_dma:1" > $d/settings
More information about the Fai-commit
mailing list