Author: glen
Date: Tue Feb 12 20:42:49 2008
New Revision: 9313

Modified:
   geninitrd/trunk/geninitrd
Log:
- pass kernelversion to modinfo

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Tue Feb 12 20:42:49 2008
@@ -277,9 +277,9 @@
        # backwards compatible, process $mode
        local modfile
        if [ "$mode" = "silent" ]; then
-               modfile=$(modinfo -n $module 2>/dev/null)
+               modfile=$(modinfo -k $kernel -n $module 2>/dev/null)
        else
-               modfile=$(modinfo -n $module)
+               modfile=$(modinfo -k $kernel -n $module)
        fi
        if [ ! -f "$modfile" ]; then
                if [ "$mode" != "silent" ]; then
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to