summaryrefslogtreecommitdiffstats
path: root/rc/rc.fix
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /rc/rc.fix
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'rc/rc.fix')
-rwxr-xr-xrc/rc.fix24
1 files changed, 24 insertions, 0 deletions
diff --git a/rc/rc.fix b/rc/rc.fix
new file mode 100755
index 0000000..02ce94c
--- /dev/null
+++ b/rc/rc.fix
@@ -0,0 +1,24 @@
+#!/bin/bash
+#
+# /etc/rc.fix: adjustements startup file (multi-user)
+#
+
+
+#######################################################################
+# X11 font-related checks
+#######################################################################
+if [ -d /usr/share/fonts/X11 ]; then
+ 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
+fi
+
+if [ -d /var/cache/fontconfig ] && [ -z "`/bin/ls /var/cache/fontconfig/`" ]; then
+ fc-cache &> /dev/null
+fi
+
+
+# End of file