From b523ca5d931e47f684dcb828c82572169c1cf625 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 6 Feb 2006 11:56:43 +0000 Subject: Fixed small bug in mkdxsinitrd/repco (link copying) and moved the udev/hotplug stuff into distro-specific functions file. git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@62 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/mkdxsinitrd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'initrd/mkdxsinitrd') diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd index 5670021b..5d78633a 100755 --- a/initrd/mkdxsinitrd +++ b/initrd/mkdxsinitrd @@ -3,7 +3,7 @@ # Description: universal (distro independent) generator for initial # ramdisks for linux diskless clients # -# Author(s): Dirk von Suchodoletz , 03-02-2006 +# Author(s): Dirk von Suchodoletz , 06-02-2006 # Nico Dietrich # Blub # @@ -92,6 +92,8 @@ if [ -d initrd-stuff/${FILENAME} ] ; then else if file initrd-stuff/${FILENAME}| grep "ELF" &>/dev/null ; then cp initrd-stuff/${FILENAME} ${INSTDIR}/${FILENAME} + elif [ -L initrd-stuff/${FILENAME} ] ; then + cp -a initrd-stuff/${FILENAME} ${INSTDIR}/${FILENAME%/*} else sed -e "s,@@@INSTDIR@@@,${INSTDIR},g" \ -e "s,@@@NWMODULES@@@,${NWMODULES},g" \ -- cgit v1.2.3-55-g7522