# HG changeset patch # User Pascal Bellard # Date 1224795275 0 # Node ID c808d94cb65dc568d5e257e3f4ca2a78ef963939 # Parent 17a47d2b869e2200bcbc01540852dcc05c1909ca hwconf.sh: check module exists during PCI detection diff -r 17a47d2b869e -r c808d94cb65d etc/init.d/hwconf.sh --- a/etc/init.d/hwconf.sh Mon Oct 20 07:53:10 2008 +0000 +++ b/etc/init.d/hwconf.sh Thu Oct 23 20:54:35 2008 +0000 @@ -22,9 +22,11 @@ do if ! `lsmod | grep -q "$mod"` && ! `echo $BLACKLIST_MODULES | grep -q "$mod"`; then modname=`echo "$mod" | sed s/_/-/g` - echo "Loading Kernel modules: $modname" - detect="$detect $modname" - /sbin/modprobe $modname + if [ -n "$(modprobe -l $modname") ]; then + echo "Loading Kernel modules: $modname" + detect="$detect $modname" + /sbin/modprobe $modname + fi fi done # yenta_socket = laptop