added bind-mounting of host fonts

This commit is contained in:
HW
2012-04-09 19:13:35 +02:00
parent ec2eda0c05
commit b32c3bef1f
2 changed files with 6 additions and 0 deletions

View File

@@ -198,6 +198,7 @@ customupdate: all
mkdir $(INSTALL_DIR)/data
cp -rpL data/*.css $(INSTALL_DIR)/data
cp -rp fonts $(INSTALL_DIR)
mkdir -p $(INSTALL_DIR)/fonts/host
zip -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/
rm -Rf $(INSTALL_DIR)
@echo "copy kindlepdfviewer-$(VERSION).zip to /mnt/us/customupdates and install with shift+shift+I"

View File

@@ -5,7 +5,12 @@ echo unlock > /proc/keypad
echo unlock > /proc/fiveway
cd /mnt/us/kindlepdfviewer/
grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts || mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host
./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log
grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts && umount /mnt/us/kindlepdfviewer/fonts/host
killall -cont cvm
echo 1 > /proc/eink_fb/update_display