• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

vendor/intel/houdini


Commit MetaInfo

修訂682738b281c10c054fa83001f827ad4097541a8c (tree)
時間2016-01-23 00:56:08
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Support more mirror sites

Change Summary

差異

--- a/bin/enable_houdini
+++ b/bin/enable_houdini
@@ -1,5 +1,14 @@
11 #!/system/bin/sh
22
3+get_url()
4+{
5+ u=0
6+ urlx[0]=http://goo.gl/IP06KC
7+ urly[0]=http://goo.gl/E9rgu3
8+ urlx[1]=http://t.cn/Rb8w016
9+ urly[1]=http://t.cn/Rb8wO1f
10+}
11+
312 cd /system/lib/arm
413 if [ ! -e ../libhoudini.so -a ! -e libhoudini.so ]; then
514 if touch .dl_houdini; then
@@ -11,16 +20,19 @@ if [ ! -e ../libhoudini.so -a ! -e libhoudini.so ]; then
1120 fi
1221 fi
1322
23+get_url
1424 cd /data/local/tmp
1525 while [ ! -e /system/lib/libhoudini.so -a ! -e /system/lib/arm/libhoudini.so ]; do
1626 while [ "$(getprop net.dns1)" = "" ]; do
1727 sleep 10
1828 done
19- [ "`uname -m`" = "x86_64" ] && url=http://goo.gl/E9rgu3 || url=http://goo.gl/IP06KC
29+ [ "`uname -m`" = "x86_64" ] && url=${urly[$u]} || url=${urlx[$u]}
2030 wget $url -cO houdini.tgz &&
2131 bzcat houdini.tgz | tar xvf - -C /system/lib/arm && rm -f houdini.tgz && break
2232 rm -f houdini.tgz
2333 sleep 30
34+ u=$(($u+1))
35+ [ $u -ge ${#urlx[@]} ] && u=0
2436 done
2537
2638 # if you don't see the files 'register' and 'status' in /proc/sys/fs/binfmt_misc