diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2005-10-22 00:05:54 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2005-10-22 00:05:54 +0000 |
| commit | b400ec70f12e86b125c4827cc34ef449d24e4acf (patch) | |
| tree | 18962823292df9755a363b9f0014ac991d12ed7c | |
| parent | 2584eb4ef02acbfb269e6d7acff43ad3eac59cf6 (diff) | |
| download | upstream-b400ec70f12e86b125c4827cc34ef449d24e4acf.tar.gz upstream-b400ec70f12e86b125c4827cc34ef449d24e4acf.tar.bz2 upstream-b400ec70f12e86b125c4827cc34ef449d24e4acf.zip | |
speed up firstboot a bit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2220 3c298f89-4303-0410-b956-a3cf2f4a3e73
| -rwxr-xr-x | openwrt/package/base-files/default/bin/firstboot | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot index 1c3d1a7d661..0828bdabe92 100755 --- a/openwrt/package/base-files/default/bin/firstboot +++ b/openwrt/package/base-files/default/bin/firstboot @@ -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" |
