speed up firstboot a bit
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 22 Oct 2005 00:05:54 +0000 (00:05 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 22 Oct 2005 00:05:54 +0000 (00:05 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2220 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 1c3d1a7..0828bda 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" -o "${file%/*}" = "etc/config" ] && {
-    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"
 
This page took 0.024405 seconds and 4 git commands to generate.