Quote:
Originally Posted by SurgE
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.