add firstboot optimization from trunk/
authorFelix Fietkau <nbd@openwrt.org>
Sat, 22 Oct 2005 19:45:43 +0000 (19:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 22 Oct 2005 19:45:43 +0000 (19:45 +0000)
SVN-Revision: 2253

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

index cef258cf3980fcbe48bb70170ef9888020d43995..0828bdabe9207f58e9d9f9f7c7cdfc0b6662c046 100755 (executable)
@@ -42,11 +42,10 @@ echo "done"
 echo -n "setting up symlinks... "
 for file in $(cd /rom; find *  -type f; find *  -type l;)
 do {
-  [ "${file%/*}" = "usr/lib/ipkg/info" ] && {
-    cp -f /rom/$file $file
-  } || {
-    ln -sf /rom/$file $file
-  }
+  case "${file%/*}" in
+    "usr/lib/ipkg/info"|"etc/config") cp -f /rom/$file $file;;
+    *) ln -sf /rom/$file $file;;
+  esac
 } done
 echo "done"