diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-26 01:28:48 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-26 01:28:48 +0000 |
commit | 426c7ee0331af1eb24294a283ac9b3d64a772160 (patch) | |
tree | eb6a59ae691d95a278dd6405af747139ffa58365 /openwrt/target | |
parent | fa6f182e76e1212a76fadf2d96328092898aa46a (diff) |
fix ipkg symlink issue on squashfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@719 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target')
-rwxr-xr-x | openwrt/target/default/target_skeleton/bin/firstboot | 12 |
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 5076d1c18..8bb0b3efa 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 |