mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
xbmc: add support for fonts installed by user
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4ecac724b3
commit
b5bf326e34
@ -36,6 +36,16 @@ fi
|
|||||||
# hack: make addon-bins executable
|
# hack: make addon-bins executable
|
||||||
chmod +x /storage/.xbmc/addons/*/bin/* > /dev/null 2>&1
|
chmod +x /storage/.xbmc/addons/*/bin/* > /dev/null 2>&1
|
||||||
|
|
||||||
|
# hack to support user installed fonts
|
||||||
|
SUBFONTS="/storage/.xbmc/userdata/fonts"
|
||||||
|
if [ -d "$SUBFONTS" ]; then
|
||||||
|
files=$(ls $SUBFONTS/*.[tT][tT][fF] 2>/dev/null | wc -l)
|
||||||
|
if [ "$files" = "0" ]; then
|
||||||
|
cp /usr/share/xbmc/media/Fonts/*.[tT][tT][fF] $SUBFONTS/
|
||||||
|
fi
|
||||||
|
mount --bind $SUBFONTS /usr/share/xbmc/media/Fonts/
|
||||||
|
fi
|
||||||
|
|
||||||
# starting autostart script (will be removed later again, dont use it!!!)
|
# starting autostart script (will be removed later again, dont use it!!!)
|
||||||
AUTOSTART="/storage/.config/autostart.sh"
|
AUTOSTART="/storage/.config/autostart.sh"
|
||||||
if [ -f $AUTOSTART ]; then
|
if [ -f $AUTOSTART ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user