projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f2622
)
speed up firstboot a bit
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 22 Oct 2005 00:05:54 +0000
(
00:05
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 22 Oct 2005 00:05:54 +0000
(
00:05
+0000)
SVN-Revision: 2220
openwrt/package/base-files/default/bin/firstboot
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/bin/firstboot
b/openwrt/package/base-files/default/bin/firstboot
index 1c3d1a7d661479904be7a9944bcf5a8c3b796f22..0828bdabe9207f58e9d9f9f7c7cdfc0b6662c046 100755
(executable)
--- 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"