Author: glen
Date: Sun Nov 16 20:19:42 2008
New Revision: 9994

Modified:
   geninitrd/trunk/geninitrd
Log:
- silence errors from modinfo, as we will fallback to aliases lookup

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Sun Nov 16 20:19:42 2008
@@ -286,12 +286,7 @@
        local mode="$2"
 
        # backwards compatible, process $mode
-       local modfile
-       if [ "$mode" = "silent" ]; then
-               modfile=$(modinfo -k $kernel -n $module 2>/dev/null)
-       else
-               modfile=$(modinfo -k $kernel -n $module)
-       fi
+       local modfile=$(modinfo -k $kernel -n $module 2>/dev/null)
        if [ ! -f "$modfile" ]; then
                # module not found. try aliases!
                local alias aliases=$(modprobe_conf | awk -vm="$module" '$1 == 
"alias" && $2 == m { print $3 }')
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to