summaryrefslogtreecommitdiff
path: root/openwrt/target/default/target_skeleton/bin
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-04-26 01:28:48 +0000
committerMike Baker <mbm@openwrt.org>2005-04-26 01:28:48 +0000
commit672ddf655bd40812d6a3b4be25563ccf089e1534 (patch)
treeeb6a59ae691d95a278dd6405af747139ffa58365 /openwrt/target/default/target_skeleton/bin
parent4555bc50a96760c1b42cc0dfbcd17a3e3ea70835 (diff)
downloadmtk-20170518-672ddf655bd40812d6a3b4be25563ccf089e1534.zip
mtk-20170518-672ddf655bd40812d6a3b4be25563ccf089e1534.tar.gz
mtk-20170518-672ddf655bd40812d6a3b4be25563ccf089e1534.tar.bz2
fix ipkg symlink issue on squashfs
SVN-Revision: 719
Diffstat (limited to 'openwrt/target/default/target_skeleton/bin')
-rwxr-xr-xopenwrt/target/default/target_skeleton/bin/firstboot12
1 files changed, 11 insertions, 1 deletions
diff --git a/openwrt/target/default/target_skeleton/bin/firstboot b/openwrt/target/default/target_skeleton/bin/firstboot
index 5076d1c..8bb0b3e 100755
--- 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