summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-05-13 20:11:25 +0200
committerDirk von Suchodoletz2007-05-13 20:11:25 +0200
commitce0c7f5334f006f45451b65fd3b515d8d44ba5e8 (patch)
tree674d8dc0a085ced59b4f6ba0e49abaf4cbd52ebb /initramfs
parent* added utility function followLink() and made use of it (diff)
downloadcore-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-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