diff options
Diffstat (limited to 'system/univga-font/doinst.sh')
-rw-r--r-- | system/univga-font/doinst.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/univga-font/doinst.sh b/system/univga-font/doinst.sh index 4316eac64c6de..11dff54efeaa2 100644 --- a/system/univga-font/doinst.sh +++ b/system/univga-font/doinst.sh @@ -11,6 +11,11 @@ if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then ) fi +# If X is running... +if [ "$DISPLAY" != "" ] && [ -x /usr/bin/xset ]; then + /usr/bin/xset fp rehash >/dev/null 2>&1 +fi + # Update the X font indexes: if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache -f |