summaryrefslogtreecommitdiffstats
path: root/system/dosemu-fonts/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/dosemu-fonts/doinst.sh')
-rw-r--r--system/dosemu-fonts/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/dosemu-fonts/doinst.sh b/system/dosemu-fonts/doinst.sh
new file mode 100644
index 0000000000..9ebe5c1d5b
--- /dev/null
+++ b/system/dosemu-fonts/doinst.sh
@@ -0,0 +1,14 @@
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f &> /dev/null
+fi
+
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd usr/share/fonts/misc ; /usr/bin/mkfontdir )
+fi
+
+if [ -x /usr/bin/mkfontscale ]; then
+ ( cd usr/share/fonts/misc ; /usr/bin/mkfontscale )
+fi
+
+# This may or may not work, but will do no harm:
+DISPLAY=:0 /usr/bin/xset fp rehash &>/dev/null