]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/install+setup/install/probehw.sh
Setup weiter ausgebaut.
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / probehw.sh
index 6ca3e37db4f167ceb78dff883d9fdbe563a60667..6fbcb5cafa8e9fb2e393acb1c727638323fa0f54 100644 (file)
@@ -7,9 +7,8 @@ for MODULE in $(kudzu -qps  -t 30 | grep driver: | cut -d ' ' -f 2 | sort | uniq
                                [ "${MODULE}" = "" ]; then
         continue
                fi
-               echo -n "Module: $MODULE --> "
-               MODULE=$(basename $(find /lib/modules -name $(echo $MODULE | sed -e 's/[_-]/*/g')* ) | cut -d. -f1 | head -1)
-               echo "$MODULE"
+               MODULE=$(basename $(find /lib/modules -name $(echo $MODULE | sed -e 's/[_-]/*/g')* ) | cut -d. -f1 | head -1 2>/dev/null)
+    [ "${MODULE}" == "" ] && continue
     
                if grep -Eqe "^${MODULE} " /proc/modules; then
                        continue