X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fconfigure-fonts;h=6345568bebc4c3d182938e5ce16cfba77b0617a2;hb=7332a6d7565d29c48fc7dacdc87aa32fcc55992d;hp=cfc35b3f48d7b3230a6a9e092a545f17dd408799;hpb=f3c8db3027d5dc530e1f30c88e0235975211582e;p=hvlinux.git diff --git a/stage4/configure-fonts b/stage4/configure-fonts index cfc35b3..6345568 100755 --- a/stage4/configure-fonts +++ b/stage4/configure-fonts @@ -2,18 +2,12 @@ source ../functions/main -# When all of the fonts have been installed, the system must be configured so -# that Fontconfig can find the TrueType fonts since they are outside of the -# default search path of /usr/share/fonts. -install -v -d -m755 /usr/share/fonts -ln -svfT /usr/lib/X11/fonts/OTF /usr/share/fonts/X11-OTF -ln -svfT /usr/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF - X11_FONTS_DIR="/usr/share/fonts/X11" -if ! grep "${X11_FONTS_DIR}" /etc/fonts/local.conf 1> /dev/null 2>&1; then +if ! grep -q "${X11_FONTS_DIR}" /etc/fonts/local.conf; then # Adding X fonts directory to local configuration file - sed -i -e "s!\(\)! ${X11_FONTS_DIR}\n\1!" /etc/fonts/local.conf + sed -i -e "s!\(\)! ${X11_FONTS_DIR}\n\1!" \ + /etc/fonts/local.conf fi # Updating cache database.