From: Mike Baker Date: Sun, 12 Mar 2006 11:41:16 +0000 (+0000) Subject: copy symlinks as is (don't chain symlinks) X-Git-Tag: whiterussian_rc5~69 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a7fb6bf74279c4e3899014a7108d80fb0829376;p=openwrt%2Fsvn-archive%2Fopenwrt.git copy symlinks as is (don't chain symlinks) SVN-Revision: 3351 --- 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" }