added bind-mounting of host fonts

pull/2/merge
HW 12 years ago
parent ec2eda0c05
commit b32c3bef1f

@ -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"

@ -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

Loading…
Cancel
Save