mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-03 12:34:19 +00:00
fix ipkg symlink issue on squashfs
SVN-Revision: 719
This commit is contained in:
parent
4555bc50a9
commit
672ddf655b
@ -37,10 +37,20 @@ echo "done"
|
|||||||
echo -n "setting up symlinks... "
|
echo -n "setting up symlinks... "
|
||||||
for file in $(cd /rom; find * -type f; find * -type l;)
|
for file in $(cd /rom; find * -type f; find * -type l;)
|
||||||
do {
|
do {
|
||||||
ln -sf /rom/$file $file
|
[ "${file%/*}" = "usr/lib/ipkg/info" ] && {
|
||||||
|
cp -f /rom/$file $file
|
||||||
|
} || {
|
||||||
|
ln -sf /rom/$file $file
|
||||||
|
}
|
||||||
} done
|
} done
|
||||||
echo "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
|
touch /tmp/resolv.conf
|
||||||
ln -s /tmp/resolv.conf /etc/resolv.conf
|
ln -s /tmp/resolv.conf /etc/resolv.conf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user