1 |
--- |
2 |
|
3 |
mkinitrd-5.1.19.6-kei/mkinitrd | 6 +++++- |
4 |
1 file changed, 5 insertions(+), 1 deletion(-) |
5 |
|
6 |
diff -puN mkinitrd~dup3 mkinitrd |
7 |
--- mkinitrd-5.1.19.6/mkinitrd~dup3 2007-03-13 17:11:51.000000000 -0400 |
8 |
+++ mkinitrd-5.1.19.6-kei/mkinitrd 2007-03-13 17:12:03.000000000 -0400 |
9 |
@@ -213,6 +213,10 @@ findmodule() { |
10 |
done |
11 |
|
12 |
for modExt in o.gz o ko ; do |
13 |
+ fmPath=$(/sbin/modinfo -F filename -k $kernel $modName 2> /dev/null) |
14 |
+ if [ -f "$fmPath" ]; then |
15 |
+ break |
16 |
+ fi |
17 |
for modDir in /lib/modules/$kernel/updates /lib/modules/$kernel ; do |
18 |
if [ -d $modDir ]; then |
19 |
fmPath=$(findone $modDir -name $modName.$modExt) |
20 |
@@ -223,7 +227,7 @@ findmodule() { |
21 |
done |
22 |
done |
23 |
|
24 |
- if [ ! -f $fmPath ]; then |
25 |
+ if [ ! -f "$fmPath" ]; then |
26 |
if [ -n "$skiperrors" ]; then |
27 |
return |
28 |
fi |
29 |
|
30 |
_ |