diff options
Diffstat (limited to 'system/fonts-farsi-extra/doinst.sh')
-rw-r--r-- | system/fonts-farsi-extra/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/fonts-farsi-extra/doinst.sh b/system/fonts-farsi-extra/doinst.sh new file mode 100644 index 000000000000..b1446e31882d --- /dev/null +++ b/system/fonts-farsi-extra/doinst.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# Update the X font indexes: + +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/TTF + mkfontscale . + mkfontdir . + ) +fi + +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/OTF + mkfontscale . + mkfontdir . + ) +fi + + +[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null + +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi |