diff options
author | Mike Baker <mbm@openwrt.org> | 2005-04-26 01:28:48 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2005-04-26 01:28:48 +0000 |
commit | cc8f1e53f1538702b68c196d2f2a2f686ccf8a61 (patch) | |
tree | 305f13c1121a0b6db94125c2979724217ca77984 /target | |
parent | ccd831e8ae73a8cd757c44f86bdae4a67fa46f72 (diff) | |
download | upstream-cc8f1e53f1538702b68c196d2f2a2f686ccf8a61.tar.gz upstream-cc8f1e53f1538702b68c196d2f2a2f686ccf8a61.tar.bz2 upstream-cc8f1e53f1538702b68c196d2f2a2f686ccf8a61.zip |
fix ipkg symlink issue on squashfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@719 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-x | target/default/target_skeleton/bin/firstboot | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/target/default/target_skeleton/bin/firstboot b/target/default/target_skeleton/bin/firstboot index 5076d1c181..8bb0b3efa4 100755 --- a/target/default/target_skeleton/bin/firstboot +++ b/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 |