From 26c43fa047b792f1c6fccce873e55cbf82d3d0e2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Mar 2006 01:49:17 +0000 Subject: [PATCH] fix firstboot SVN-Revision: 3354 --- openwrt/package/base-files/default/bin/firstboot | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot index 8d12d85b17..1f03b52624 100755 --- a/openwrt/package/base-files/default/bin/firstboot +++ b/openwrt/package/base-files/default/bin/firstboot @@ -17,8 +17,7 @@ dupe() { # echo "done" echo -n "setting up symlinks... " - for file in $(cd $2; find . -xdev -type f;) - do { + for file in $(cd $2; find . -xdev -type f;); do case "$file" in "./rom/note") ;; #nothing "./etc/config"|\ @@ -26,11 +25,10 @@ dupe() { # "./usr/lib/ipkg/info") cp -af $2/$file $file;; *) ln -sf /rom/${file#./*} $file;; esac - } done - for file in $(cd $2; find . -xdev -type l;) - do { - cp -af /rom/${file#./*} $file - } + done + for file in $(cd $2; find . -xdev -type l;); do + cp -af $2/${file#./*} $file + done echo "done" } -- 2.30.2