diff options
author | Dirk von Suchodoletz | 2007-05-13 20:11:25 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-05-13 20:11:25 +0200 |
commit | ce0c7f5334f006f45451b65fd3b515d8d44ba5e8 (patch) | |
tree | 674d8dc0a085ced59b4f6ba0e49abaf4cbd52ebb /initramfs | |
parent | * added utility function followLink() and made use of it (diff) | |
download | core-ce0c7f5334f006f45451b65fd3b515d8d44ba5e8.tar.gz core-ce0c7f5334f006f45451b65fd3b515d8d44ba5e8.tar.xz core-ce0c7f5334f006f45451b65fd3b515d8d44ba5e8.zip |
Better and simpler solution; thanks Olli :)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1070 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rwxr-xr-x | initramfs/mkdxsinitrd | 5 |
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 |