5 kx #!/bin/sh
5 kx #
5 kx # Run fc-cache to locate new fonts for Xft:
5 kx #
5 kx if [ -x usr/bin/fc-cache ]; then
5 kx if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then
5 kx dialog --title "FONTCONFIG UPDATE" --infobox \
5 kx "Please wait while we generate font.cache-1 files with fc-cache. \
5 kx For best results, fc-cache should be run whenever fonts are \
5 kx added to the system." 5 68
5 kx else
5 kx echo "Please wait while we generate font.cache-1 files with fc-cache."
5 kx echo "For best results, fc-cache should be run whenever fonts are added"
5 kx echo "to the system."
5 kx fi
5 kx chroot . /sbin/ldconfig 1> /dev/null 2> /dev/null
5 kx chroot . /usr/bin/fc-cache -f 1> /dev/null 2> /dev/null
5 kx fi