Thread: PRS-T1 getting adb working
View Single Post
Old 03-01-2012, 08:42 AM   #55
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
Finally worked it out, thanks for uboot and j0534ng31's help.
Now I can replace any fonts of /ebook, including the system UI fonts.


Code:
#!/system/bin/sh

mkdir /data/altsd

mount -o noatime,utf8 -t vfat /dev/block/mmcblk2p4 /data/altsd

afd=/data/altsd/altfonts/
fts=`ls $afd`
for ft in $fts
 do
  mount -o bind $afd$ft /ebook/fonts/$ft
done
Why not mount to /mnt/sdcard directly? Because if mounted to /mnt/sdcard, sometime later, when the system do the mount procedure, will got faliure because /mnt/sdcard was already occupied, and some related action will not be done. To avoid this, I mount to another directory.

As to VDC, I guess that it has not been initialized when the install-recovey.sh is running.

Last edited by xuyn2003; 03-01-2012 at 08:49 AM.
xuyn2003 is offline   Reply With Quote