summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs/mkdxsinitrd5
1 files changed, 1 insertions, 4 deletions
diff --git a/initramfs/mkdxsinitrd b/initramfs/mkdxsinitrd
index 7e836af0..15c05ae7 100755
--- a/initramfs/mkdxsinitrd
+++ b/initramfs/mkdxsinitrd
@@ -216,11 +216,8 @@ copy_distro_stuff() {
# copy kernel modules even if links (first parameter is source, second
# destination and third source prefix)
modcp () {
-local tmpval
if [ -L $1 ] ; then
- tmpval=$(ls -la $1)
- tmpval=${tmpval#*-> }
- cp $3/$tmpval $2
+ cp $3/$(readlink $1) $2
else
cp $1 $2
fi