From ce0c7f5334f006f45451b65fd3b515d8d44ba5e8 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 13 May 2007 18:11:25 +0000 Subject: Better and simpler solution; thanks Olli :) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1070 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/mkdxsinitrd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'initramfs') 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 -- cgit v1.2.3-55-g7522