mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-02 03:40:13 +00:00
Merge branch 'master' into 'master'
Update external_sd See merge request Nanolx/NanoDroid!12
This commit is contained in:
commit
a8ba32949e
@ -2,18 +2,8 @@
|
||||
|
||||
echo "external_sd init script"
|
||||
|
||||
# retry 6 times, wait 5 seconds between each try
|
||||
count=0
|
||||
|
||||
while [[ -z $(grep "^/dev/block.*/mnt/media_rw" /proc/mounts) ]]; do
|
||||
count=$((count+1))
|
||||
if [ "${count}" -lt 7 ]; then
|
||||
sleep 5
|
||||
else
|
||||
echo ">> no SD Card found"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
# nothing to wait
|
||||
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
|
||||
|
||||
media_rw=$(grep "^/dev/block.*/mnt/media_rw" /proc/mounts \
|
||||
| cut -d " " -f 2 \
|
||||
|
Loading…
Reference in New Issue
Block a user