projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61470d0
)
add firstboot optimization from trunk/
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 22 Oct 2005 19:45:43 +0000
(19:45 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 22 Oct 2005 19:45:43 +0000
(19:45 +0000)
SVN-Revision: 2253
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 cef258cf3980fcbe48bb70170ef9888020d43995..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" ] && {
- 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"