fix firstboot
authorFelix Fietkau <nbd@openwrt.org>
Mon, 13 Mar 2006 01:49:17 +0000 (01:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 13 Mar 2006 01:49:17 +0000 (01:49 +0000)
SVN-Revision: 3354

openwrt/package/base-files/default/bin/firstboot

index 8d12d85b17488b8d21e25a2330ce1cfe7ff9be13..1f03b526244c1956b693173296c7e76bd1c8376d 100755 (executable)
@@ -17,8 +17,7 @@ dupe() { # <new_root> <old_root>
        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() { # <new_root> <old_root>
                "./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"
 }