device/generic/common
Révision | cc13ae622dfde5f584b6db1b132cc590d01dfdb5 (tree) |
---|---|
l'heure | 2020-02-21 19:11:45 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Merge remote-tracking branch 'x86/oreo-x86' into pie-x86
@@ -35,16 +35,17 @@ else | ||
35 | 35 | kill -9 `fuser -m $dest_dir` |
36 | 36 | umount -f $dest_dir |
37 | 37 | fi |
38 | - mkdir -p /data/arm | |
39 | - cd /data/arm | |
38 | + if [ ! -d /data/media/0/arm ]; then | |
39 | + mkdir -p /data/media/0/arm | |
40 | + chown 1023.1023 /data/media/0/arm | |
41 | + fi | |
42 | + cd /data/media/0/arm | |
43 | + [ -s /data/arm/houdini$v.sfs ] && mv /data/arm/houdini$v.sfs . | |
40 | 44 | while ! mount_sfs houdini$v.sfs $dest_dir; do |
41 | 45 | while [ "$(getprop net.dns1)" = "" ]; do |
42 | 46 | sleep 10 |
43 | 47 | done |
44 | - wget ${urls[$u%6]} -cO houdini$v.sfs && continue | |
45 | - rm -f houdini$v.sfs | |
46 | - sleep 30 | |
47 | - let u+=3 | |
48 | + [ -s houdini$v.sfs ] && sleep 10 || sleep 30 | |
48 | 49 | done |
49 | 50 | fi |
50 | 51 |