pfalcon / optware-android

Optware setup script for Android devices. Not actively maintained any more. You may want to look at https://github.com/Entware-ng/Entware-ng/wiki/Install-on-Android
35 stars 9 forks source link

adb chokes on empty symlinks #6

Open ShapeShifter499 opened 10 years ago

ShapeShifter499 commented 10 years ago

adb is choking on empty symlinks inside the ipkg ipk file, I found adding a few remove lines fixes this, my re-edited part is below.

  install_ipkg () {
           rm opt/lib/libipkg.so.0
            rm opt/lib/libipkg.so
            rm opt/bin/ipkg-opt

            adb push opt $tmp_dir

            t_mkdir_p /opt/bin
            t_mkdir_p /opt/lib

            install_bin ipkg

            t_cp $tmp_dir/lib/libipkg.so.0.0.0 /opt/lib/libipkg.so.0.0.0
            t_cd_ln /opt/lib/ -s libipkg.so.0.0.0 libipkg.so.0
            t_cd_ln /opt/lib/ -s libipkg.so.0.0.0 libipkg.so
  }