summaryrefslogtreecommitdiff
path: root/modules.d/40network
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-06-01 17:09:25 +0200
committerHarald Hoyer <harald@redhat.com>2012-06-01 17:09:51 +0200
commit9073ff54c12f4f8e4802cb46d7124f5aac7933fe (patch)
tree4198986bfabc07bc6d554ab9f2cad7dd321e2398 /modules.d/40network
parent840d8e4733067d71e550b86d57ae11737a47f499 (diff)
downloaddracut-9073ff54c12f4f8e4802cb46d7124f5aac7933fe.tar.gz
dracut-9073ff54c12f4f8e4802cb46d7124f5aac7933fe.tar.bz2
dracut-9073ff54c12f4f8e4802cb46d7124f5aac7933fe.zip
fix return value of some installkernel() functions
Diffstat (limited to 'modules.d/40network')
-rwxr-xr-xmodules.d/40network/module-setup.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
index da585219..4ed8d03b 100755
--- a/modules.d/40network/module-setup.sh
+++ b/modules.d/40network/module-setup.sh
@@ -27,6 +27,7 @@ installkernel() {
net_module_filter() {
local _net_drivers='eth_type_trans|register_virtio_device'
local _unwanted_drivers='/(wireless|isdn|uwb)/'
+ local _ret
# subfunctions inherit following FDs
local _merge=8 _side2=9
function nmf1() {
@@ -55,7 +56,9 @@ installkernel() {
# Use two parallel streams to filter alternating modules.
set +x
eval "( ( rotor ) ${_side2}>&1 | nmf1 ) ${_merge}>&1"
+ _ret=$?
[[ $debug ]] && set -x
+ return $_ret
}
{ find_kernel_modules_by_path drivers/net; find_kernel_modules_by_path drivers/s390/net; } \