From: Mike Baker Date: Tue, 26 Apr 2005 01:28:48 +0000 (+0000) Subject: fix ipkg symlink issue on squashfs X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=d9ad7c4ad774492de7eb61ee1803204efcbbc5a5 fix ipkg symlink issue on squashfs SVN-Revision: 719 --- diff --git a/openwrt/target/default/target_skeleton/bin/firstboot b/openwrt/target/default/target_skeleton/bin/firstboot index 5076d1c181..8bb0b3efa4 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