* [PATCH 3/8] install_kmod_with_fw: make fast case faster
@ 2011-08-31 4:39 John Reiser
0 siblings, 0 replies; only message in thread
From: John Reiser @ 2011-08-31 4:39 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
---
dracut-functions | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dracut-functions b/dracut-functions
index 15a75b9..9d941d7 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -782,13 +782,14 @@ check_module_dir() {
# Install a single kernel module along with any firmware it may require.
# $1 = full path to kernel module to install
install_kmod_with_fw() {
- local _modname=${1##*/} _fwdir _found _fw
- _modname=${_modname%.ko*}
# no need to go further if the module is already installed
[[ -e "${initdir}/lib/modules/$kernel/${1##*/lib/modules/$kernel/}" ]] \
&& return 0
inst_simple "$1" "/lib/modules/$kernel/${1##*/lib/modules/$kernel/}" \
|| return $?
+
+ local _modname=${1##*/} _fwdir _found _fw
+ _modname=${_modname%.ko*}
for _fw in $(modinfo -k $kernel -F firmware $1 2>/dev/null); do
_found=''
for _fwdir in $fw_dir; do
--
1.7.6
--
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-31 4:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 4:39 [PATCH 3/8] install_kmod_with_fw: make fast case faster John Reiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox