aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit0384bd07ecaaebf4f5c7420fffe245e091e2802a (patch)
treea724bab1f43ddf042511bdffe7fce8000856999d /package/base-files
parent0ecec99dac133ca7a5374473c74fae73add9d565 (diff)
downloadmaster-187ad058-0384bd07ecaaebf4f5c7420fffe245e091e2802a.tar.gz
master-187ad058-0384bd07ecaaebf4f5c7420fffe245e091e2802a.tar.bz2
master-187ad058-0384bd07ecaaebf4f5c7420fffe245e091e2802a.zip
speed up firstboot a bit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2220 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/default/bin/firstboot9
1 files changed, 4 insertions, 5 deletions
diff --git a/package/base-files/default/bin/firstboot b/package/base-files/default/bin/firstboot
index 1c3d1a7d66..0828bdabe9 100755
--- a/package/base-files/default/bin/firstboot
+++ b/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"