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:
20ca113
)
fix firstboot checks for files to copy instead of symlink (ported from buildroot-ng)
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 4 Oct 2006 22:23:26 +0000
(22:23 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 4 Oct 2006 22:23:26 +0000
(22:23 +0000)
SVN-Revision: 4920
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 7bbf014b5a7d0b373833fa141e9194ca7b8a16ef..02d941fe9840323e9056719ba500d4db13d38616 100755
(executable)
--- a/
openwrt/package/base-files/default/bin/firstboot
+++ b/
openwrt/package/base-files/default/bin/firstboot
@@
-19,10
+19,10
@@
dupe() { # <new_root> <old_root>
echo -n "setting up symlinks... "
for file in $(cd $2; find . -xdev -type f;); do
case "$file" in
-
"./rom/note"
) ;; #nothing
-
"./etc/config"
|\
-
"./etc/resolv.conf"
|\
-
"./usr/lib/ipkg/info"
) cp -af $2/$file $file;;
+
./rom/note
) ;; #nothing
+
./etc/config*
|\
+
./etc/resolv.conf
|\
+
./usr/lib/ipkg/info/*
) cp -af $2/$file $file;;
*) ln -sf /rom/${file#./*} $file;;
esac
done