Quote:
Originally Posted by xuyn2003
Finally I found that when "install-recovery.sh" is running, the sdcard had not been mounted yet. Because install-recovery.sh can mkdir in /data but can't mkdir in /mnt/sdcard,
then the question is, how to mount the sdcard in install-recovery.sh?
Thanks uboot.
|
This is not very difficult...
I did it adding this just before the mount command:
Code:
if ! ( grep -c "/mnt/sdcard" /proc/mounts ); then
sleep 10
if ! ( grep -c "/mnt/sdcard" /proc/mounts ); then
sleep 10
if ! ( grep -c "/mnt/sdcard" /proc/mounts ); then
sleep 10
fi
fi
fi