Quote:
Originally Posted by j0534ng31
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
|
Thanks j0534ng31, it worked!
But as I tested in terminal, the script will always sleep 30 seconds.
That is, ( grep -c "/mnt/sdcard" /proc/mounts ) is always return FALSE.
Or a trigger can be implmented? Once the /mnt/sdcard was mounted, the command will be excuted.
And, before /mnt/sdcard/ was mounted, the system had already loaded some fonts from /ebook/fonts, such as DroidSans.ttf. I want the system load all fonts from /sdcard/fonts, so it's better to mount /mnt/sdcard/ at first directly, then bind /sdcard/fonts to /ebook/fonts as soon as possible. Not to wait the system to mount the sdcard.