diff options
author | maximilian attems <maks@debian.org> | 2010-04-08 08:53:50 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-04-08 08:53:50 +0200 |
commit | ad301da1f90013d372772f9de0a3f518b9b24717 (patch) | |
tree | defc38c7996888194e4cd55f3761c509dae6b5df /hook-functions | |
parent | 7a26a4d17fe230055966ab8e1e5476e35fe9791a (diff) | |
download | initramfs-tools-ad301da1f90013d372772f9de0a3f518b9b24717.tar.gz initramfs-tools-ad301da1f90013d372772f9de0a3f518b9b24717.zip |
hook-functions: copy_modules_dir() small simplifications
use meaningful variable name.
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r-- | hook-functions | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hook-functions b/hook-functions index 3ba08c5..86d4afa 100644 --- a/hook-functions +++ b/hook-functions @@ -156,8 +156,7 @@ copy_exec() { # Copy entire subtrees to the initramfs copy_modules_dir() { - local x_mod - local exclude + local kmod exclude local dir="$1" shift @@ -174,7 +173,7 @@ copy_modules_dir() exclude="${exclude:-} -name $1 -prune -o " shift done - for x_mod in $(find "${MODULESDIR}/${dir}" ${exclude:-} -name '*.ko' -print); do + for kmod in $(find "${MODULESDIR}/${dir}" ${exclude:-} -name '*.ko' -print); do manual_add_modules $(basename ${x_mod} .ko) done } |