projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4555bc5
)
fix ipkg symlink issue on squashfs
author
Mike Baker
<mbm@openwrt.org>
Tue, 26 Apr 2005 01:28:48 +0000
(
01:28
+0000)
committer
Mike Baker
<mbm@openwrt.org>
Tue, 26 Apr 2005 01:28:48 +0000
(
01:28
+0000)
SVN-Revision: 719
openwrt/target/default/target_skeleton/bin/firstboot
patch
|
blob
|
history
diff --git
a/openwrt/target/default/target_skeleton/bin/firstboot
b/openwrt/target/default/target_skeleton/bin/firstboot
index 5076d1c181be78afa57c789645c82a9a856f8a81..8bb0b3efa41f5689f48e5fb4824c3118fd72e6c8 100755
(executable)
--- a/
openwrt/target/default/target_skeleton/bin/firstboot
+++ b/
openwrt/target/default/target_skeleton/bin/firstboot
@@
-37,10
+37,20
@@
echo "done"
echo -n "setting up symlinks... "
for file in $(cd /rom; find * -type f; find * -type l;)
do {
- ln -sf /rom/$file $file
+ [ "${file%/*}" = "usr/lib/ipkg/info" ] && {
+ cp -f /rom/$file $file
+ } || {
+ ln -sf /rom/$file $file
+ }
} done
echo "done"
+echo -n "fixing ipkg symlinks... "
+for file in $( find /usr/lib/ipkg/info/*list -type l;)
+do {
+ rm $file; cp -f /rom/$file $file
+} done
+
touch /tmp/resolv.conf
ln -s /tmp/resolv.conf /etc/resolv.conf