Magellan Linux

Annotation of /trunk/mkinitrd/patches/mkinitrd-6.3.5-modinfo-right-kernel-version.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2722 - (hide annotations) (download)
Mon Nov 16 13:16:15 2015 UTC (8 years, 5 months ago) by niro
File size: 570 byte(s)
-added patch to fix the kernelversion which modinfo use
1 niro 2722 Index: mkinitrd.in
2     ===================================================================
3     --- mkinitrd.in (Revision 2892)
4     +++ mkinitrd.in (Arbeitskopie)
5     @@ -837,7 +837,7 @@
6     # get firmware files if neccessary
7     if [ -x $(which modinfo 2> /dev/null) ]
8     then
9     - firmware_blobs=$(modinfo ${module}${text} | grep 'firmware:' | sed 's:^firmware\:.*[[:space:]]\(.*\):\1:')
10     + firmware_blobs=$(modinfo -k ${kernel} ${module}${text} | grep 'firmware:' | sed 's:^firmware\:.*[[:space:]]\(.*\):\1:')
11     if [[ ! -z ${firmware_blobs} ]]
12     then
13     for firmware in ${firmware_blobs}