diff --git a/rc/rc b/rc/rc index 4a5848d..4c60b0c 100755 --- a/rc/rc +++ b/rc/rc @@ -103,4 +103,9 @@ fi # Save boot messages /bin/dmesg > /var/log/boot +# Run firstboot script +if [ -x /etc/rc.firstboot ]; then + /etc/rc.firstboot +fi + # End of file --- /dev/null 2007-03-01 09:43:36.000000000 +0100 +++ rc/rc.firstboot 2007-03-13 21:46:23.000000000 +0100 @@ -0,0 +1,20 @@ +#!/bin/bash +# +# /etc/rc.firstboot: fix font files +# + +# if we have fontconfig, call fc-cache +if [ `pkginfo -i | gawk '$1 ~ /^fontconfig$/ {print $1}'` ]; then + fc-cache +fi + +# if we have xorg-mkfontdir and xorg-mkfontscale, call them in +# the font directories. +if [ `pkginfo -i | gawk '$1 ~ /^xorg-mkfontdir$/ {print $1}'` ]; then + if [ `pkginfo -i | gawk '$1 ~ /^xorg-mkfontscale$/ {print $1}'` ]; then + for i in `ls -d /usr/lib/X11/fonts/*`; do + mkfontdir $i + mkfontscale $i + done + fi +fi