[PATCH 01/12] No new symlinks for new board

Geert Stappers <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
---
 newtarget.sh |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/newtarget.sh b/newtarget.sh
index 5f11433..862683c 100755
--- a/newtarget.sh
+++ b/newtarget.sh
@@ -1,13 +1,5 @@
 #!/bin/sh -ex
 
-dir_depth() {
-	dir="$1"
-	while [ "$dir" != "." ] && [ "$dir" != "/" ]; do
-		dir=`dirname "$dir"`
-		echo -n ../
-	done
-}
-
 if [ "$#" -ne 1 ]; then
 	echo "you have to specify the new target name"
 	exit
@@ -44,7 +36,7 @@ for f in packages/base \
          hooks/firstboot \
          hooks/empty_password; do
 	mkdir -p `dirname $PLATFORM/$f`
-	ln -s `dir_depth $f`default/$f $PLATFORM/$f
+	cp -p default/$f $PLATFORM/$f
 done
 
 cat << __END__ > $PLATFORM/root/etc/hosts
-- 
1.7.2.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.