You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
881 B
35 lines
881 B
#!/bin/bash
|
|
|
|
ENABLED=yes
|
|
[ "$ENABLED" != "yes" ] && exit 0
|
|
DEBUGMODE=no
|
|
#. /usr/lib/ublinux/functions
|
|
#. /usr/lib/ublinux/os-config
|
|
debug_mode "$0" "$@"
|
|
|
|
#for font_dir in /usr/share/fonts{,/default}/TTF /usr/X11R6/lib/X11/fonts/TTF; do
|
|
# if [ -d "${font_dir}" ]; then
|
|
# fcneed=on
|
|
# mkfontscale ${font_dir}
|
|
# mkfontdir ${font_dir}
|
|
# fi
|
|
#done
|
|
#[ $fcneed ] && fc-cache -f -s
|
|
|
|
for font_dir in usr/share/fonts{,/default}/TTF usr/X11R6/lib/X11/fonts/TTF; do
|
|
if [[ -d "${font_dir}" ]]; then
|
|
chroot . usr/bin/mkfontscale ${font_dir}
|
|
chroot . usr/bin/mkfontdir ${font_dir}
|
|
fi
|
|
done
|
|
|
|
#for font_dir in /usr/share/fonts/*; do
|
|
# if [ -d "${font_dir}" ]; then
|
|
# xset +fp "${font_dir}" 2>&1 &>/dev/null
|
|
# mkfontscale "${font_dir}"
|
|
# mkfontdir "${font_dir}"
|
|
# fi
|
|
#done && xset fp rehash #2>&1 &>/dev/null
|
|
|
|
chroot . usr/bin/fc-cache -s 2>&1 &>/dev/null
|