summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/bin/firstboot
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-10-22 00:05:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-10-22 00:05:54 +0000
commit196076cf2f58b0239a2a9df7d2b09274d23b81ec (patch)
treece4d84bfc4bcb3cbd421b52e8033b0c8025a167c /openwrt/package/base-files/default/bin/firstboot
parentf5f2622ce373f80ebb71c74022a1b4bc535de230 (diff)
downloadmtk-20170518-196076cf2f58b0239a2a9df7d2b09274d23b81ec.zip
mtk-20170518-196076cf2f58b0239a2a9df7d2b09274d23b81ec.tar.gz
mtk-20170518-196076cf2f58b0239a2a9df7d2b09274d23b81ec.tar.bz2
speed up firstboot a bit
SVN-Revision: 2220
Diffstat (limited to 'openwrt/package/base-files/default/bin/firstboot')
-rwxr-xr-xopenwrt/package/base-files/default/bin/firstboot9
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 1c3d1a7..0828bda 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"