# HG changeset patch # User Christophe Lincoln # Date 1234917359 -3600 # Node ID 48447c5a5a5282d8493e316aa796804b128b9b3f # Parent d3bf7f751e5fdced198f7462150434d9736c12f7 hwconf.sh: module can be listed but not installed diff -r d3bf7f751e5f -r 48447c5a5a52 etc/init.d/hwconf.sh --- a/etc/init.d/hwconf.sh Tue Feb 17 23:26:53 2009 +0100 +++ b/etc/init.d/hwconf.sh Wed Feb 18 01:35:59 2009 +0100 @@ -14,10 +14,14 @@ MODULES_LIST=`lspci -k | grep "modules" | cut -d ":" -f 2 | sed s/-/_/g` for mod in $MODULES_LIST do - if ! lsmod | grep -q "$mod" && [ -f "$(modprobe -l $mod)" ]; then - echo "Loading Kernel modules: $mod" - detect="$detect $mod" - /sbin/modprobe $mod + if ! lsmod | grep -q "$mod"; then + if [ -f "$(modprobe -l $mod)" ]; then + echo "Loading Kernel modules: $mod" + detect="$detect $mod" + /sbin/modprobe $mod + else + echo "Missing module: $mod" + fi fi done # yenta_socket = laptop