mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 14:13:21 +02:00
fix ipkg symlink issue on squashfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@719 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fa6f182e76
commit
426c7ee033
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user