Thread: PRS-T1 getting adb working
View Single Post
Old 02-26-2012, 03:30 AM   #47
xuyn2003
Connoisseur
xuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texan
 
Posts: 71
Karma: 18140
Join Date: Jul 2011
Device: PRS-T1&KOBOTOUCH
Quote:
Originally Posted by j0534ng31 View Post
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.

Last edited by xuyn2003; 02-26-2012 at 04:46 AM.
xuyn2003 is offline   Reply With Quote