From: Felix Fietkau Date: Sat, 22 Oct 2005 19:45:43 +0000 (+0000) Subject: add firstboot optimization from trunk/ X-Git-Tag: whiterussian_rc4~89 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=942860d4403a75c1207e6b6e6f5795a6163bb68d;p=openwrt%2Fsvn-archive%2Fopenwrt.git add firstboot optimization from trunk/ SVN-Revision: 2253 --- diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot index cef258cf39..0828bdabe9 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" ] && { - 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"