From f670dd629f057d35ed96ce23d238c758a40837e0 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Sun, 12 Mar 2006 11:41:16 +0000 Subject: [PATCH] copy symlinks as is (don't chain symlinks) SVN-Revision: 3351 --- openwrt/package/base-files/default/bin/firstboot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot index ee082cffd2..8d12d85b17 100755 --- a/openwrt/package/base-files/default/bin/firstboot +++ b/openwrt/package/base-files/default/bin/firstboot @@ -17,7 +17,7 @@ dupe() { # echo "done" echo -n "setting up symlinks... " - for file in $(cd $2; find . -xdev -type f; find . -xdev -type l;) + for file in $(cd $2; find . -xdev -type f;) do { case "$file" in "./rom/note") ;; #nothing @@ -27,6 +27,10 @@ dupe() { # *) ln -sf /rom/${file#./*} $file;; esac } done + for file in $(cd $2; find . -xdev -type l;) + do { + cp -af /rom/${file#./*} $file + } echo "done" } -- 2.30.2