core/rc/rc.fix

23 lines
574 B
Plaintext
Raw Normal View History

2007-03-14 20:21:15 +01:00
#!/bin/bash
#
# /etc/rc.fix: adjustements startup file (multi-user)
#
#######################################################################
# X11 font-related checks
#######################################################################
2010-10-10 12:36:11 +02:00
if [ -d /usr/share/fonts/X11 ]; then
2022-02-27 21:42:18 +01:00
for i in `/bin/ls -d /usr/share/fonts/X11/*`; do
if [ ! -f $i/fonts.dir ]; then
mkfontdir $i &> /dev/null
mkfontscale $i &> /dev/null
fi
done
2007-03-14 20:21:15 +01:00
fi
if [ -d /var/cache/fontconfig ] && [ -z "`/bin/ls /var/cache/fontconfig/`" ]; then
2022-02-27 21:42:18 +01:00
fc-cache --system-only &> /dev/null
2007-03-14 20:21:15 +01:00
fi
# End of file