[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



---
 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


Reply to: