summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions5
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
}