| 1 | #!/bin/bash |
| 2 | # |
| 3 | # /etc/rc.fix: adjustements startup file (multi-user) |
| 4 | # |
| 5 | |
| 6 | |
| 7 | ####################################################################### |
| 8 | # X11 font-related checks |
| 9 | ####################################################################### |
| 10 | if [ -d /usr/lib/X11/fonts ]; then |
| 11 | for i in `/bin/ls -d /usr/lib/X11/fonts/*`; do |
| 12 | if [ ! -f $i/fonts.dir ]; then |
| 13 | mkfontdir $i &> /dev/null |
| 14 | mkfontscale $i &> /dev/null |
| 15 | fi |
| 16 | done |
| 17 | fi |
| 18 | |
| 19 | if [ -d /var/cache/fontconfig ] && [ -z "`/bin/ls /var/cache/fontconfig/`" ]; then |
| 20 | fc-cache &> /dev/null |
| 21 | fi |
| 22 | |
| 23 | |
| 24 | # End of file |