fix ipkg symlink issue on squashfs
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 26 Apr 2005 01:28:48 +0000 (01:28 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 26 Apr 2005 01:28:48 +0000 (01:28 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@719 3c298f89-4303-0410-b956-a3cf2f4a3e73

openwrt/target/default/target_skeleton/bin/firstboot

index 5076d1c..8bb0b3e 100755 (executable)
@@ -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
 
This page took 0.022845 seconds and 4 git commands to generate.