View Single Post
Old 07-26-2008, 11:49 AM   #31
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by SurgE View Post
I added the following into tinyhttp.sh just before the execution of tinyhttp:

Code:
if [ -f /Data/FONT ]; then
   mount --bind /Data/FONT /opt/sony/ebook/FONT
fi
It doesn't seem to work as I hope. Am I putting the code in the correct place?
The code is in the correct place, but -f checks for existence of a file, not directory. If you want to mount the whole directory:

Code:
if [ -d /Data/FONT ]; then
   mount --bind /Data/FONT /opt/sony/ebook/FONT
fi
For debugging you can probably echo some messages into a log file on /Data, but you should make sure it doesn't grow forever.
porkupan is offline   Reply With Quote