Blame 0083-network-module-setup.sh-fixed-installkernel-return-c.patch
|
Harald Hoyer |
53e990 |
From fe9bb86bb2d34cbcde7970a0b5a24fffa4e8404e Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53e990 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53e990 |
Date: Fri, 22 Jun 2012 15:24:28 +0200
|
|
Harald Hoyer |
53e990 |
Subject: [PATCH] network/module-setup.sh: fixed installkernel() return code
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
---
|
|
Harald Hoyer |
53e990 |
modules.d/40network/module-setup.sh | 6 +++---
|
|
Harald Hoyer |
53e990 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
|
|
Harald Hoyer |
53e990 |
index a8efbc5..6077f53 100755
|
|
Harald Hoyer |
53e990 |
--- a/modules.d/40network/module-setup.sh
|
|
Harald Hoyer |
53e990 |
+++ b/modules.d/40network/module-setup.sh
|
|
Harald Hoyer |
53e990 |
@@ -4,7 +4,6 @@
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
check() {
|
|
Harald Hoyer |
53e990 |
local _program
|
|
Harald Hoyer |
53e990 |
- . $dracutfunctions
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
for _program in ip arping dhclient ; do
|
|
Harald Hoyer |
53e990 |
if ! type -P $_program >/dev/null; then
|
|
Harald Hoyer |
53e990 |
@@ -43,6 +42,7 @@ installkernel() {
|
|
Harald Hoyer |
53e990 |
&& ! $_fcont =~ iw_handler_get_spy ]] \
|
|
Harald Hoyer |
53e990 |
&& echo "$_fname"
|
|
Harald Hoyer |
53e990 |
done
|
|
Harald Hoyer |
53e990 |
+ return 0
|
|
Harald Hoyer |
53e990 |
}
|
|
Harald Hoyer |
53e990 |
function rotor() {
|
|
Harald Hoyer |
53e990 |
local _f1 _f2
|
|
Harald Hoyer |
53e990 |
@@ -52,13 +52,13 @@ installkernel() {
|
|
Harald Hoyer |
53e990 |
echo "$_f2" 1>&${_side2}
|
|
Harald Hoyer |
53e990 |
fi
|
|
Harald Hoyer |
53e990 |
done | nmf1 1>&${_merge}
|
|
Harald Hoyer |
53e990 |
+ return 0
|
|
Harald Hoyer |
53e990 |
}
|
|
Harald Hoyer |
53e990 |
# Use two parallel streams to filter alternating modules.
|
|
Harald Hoyer |
53e990 |
set +x
|
|
Harald Hoyer |
53e990 |
eval "( ( rotor ) ${_side2}>&1 | nmf1 ) ${_merge}>&1"
|
|
Harald Hoyer |
53e990 |
- _ret=$?
|
|
Harald Hoyer |
53e990 |
[[ $debug ]] && set -x
|
|
Harald Hoyer |
53e990 |
- return $_ret
|
|
Harald Hoyer |
53e990 |
+ return 0
|
|
Harald Hoyer |
53e990 |
}
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
{ find_kernel_modules_by_path drivers/net; if [ "$_arch" = "s390" -o "$_arch" = "s390x" ]; then find_kernel_modules_by_path drivers/s390/net; fi; } \
|