![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit 217c18153011c6b0933b199b934b3eb08bb93265 Author: Simone Rota <sip@crux.nu> Date: Wed Mar 14 19:21:15 2007 +0000 rc: added /etc/rc.fix diff --git a/rc/.footprint b/rc/.footprint index 32f90b3..0c617d1 100644 --- a/rc/.footprint +++ b/rc/.footprint @@ -3,6 +3,7 @@ drwxr-xr-x root/root etc/ -rwxr-xr-x root/root etc/rc -rw-r--r-- root/root etc/rc.conf drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.fix -rwxr-xr-x root/root etc/rc.local -rwxr-xr-x root/root etc/rc.modules -rwxr-xr-x root/root etc/rc.multi diff --git a/rc/.md5sum b/rc/.md5sum index 7467708..75f8382 100644 --- a/rc/.md5sum +++ b/rc/.md5sum @@ -1,8 +1,9 @@ d2a8e98a8b10ba09b2a9da34326b526a inittab c8f2ed995547e53032f3d80a6809f793 rc 28c073739fd671ed79bd50a0ffd6c644 rc.conf +5b09d4a67beb58022879fa9ce0f5af1b rc.fix d1be35927946756c68242f29c16ee983 rc.local 394d5cff98ab59fd1a0ec64fe79292cb rc.modules -f90daf341564259d1eedc57401f631fe rc.multi +42fd4564bd4b5ad2ec26993c7fec3568 rc.multi b509225319fbdcf5a2dcc1a1f9fc8783 rc.shutdown 1b75f0b8113cd2456e024c0372b9c950 rc.single diff --git a/rc/Pkgfile b/rc/Pkgfile index c11be4e..44d4d72 100644 --- a/rc/Pkgfile +++ b/rc/Pkgfile @@ -4,8 +4,8 @@ name=rc version=2.17 -release=3 -source=(inittab rc rc.modules rc.single rc.multi rc.local rc.shutdown rc.conf) +release=5 +source=(inittab rc rc.modules rc.single rc.multi rc.local rc.fix rc.shutdown rc.conf) build() { mkdir -p $PKG/etc/rc.d @@ -15,6 +15,7 @@ build() { install -m 755 rc.single $PKG/etc install -m 755 rc.multi $PKG/etc install -m 755 rc.local $PKG/etc + install -m 755 rc.fix $PKG/etc install -m 755 rc.shutdown $PKG/etc install -m 644 rc.conf $PKG/etc mkdir -p $PKG/var/log $PKG/var/lib/urandom diff --git a/rc/rc.fix b/rc/rc.fix new file mode 100755 index 0000000..c0303c0 --- /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/lib/X11/fonts ]; then + for i in `/bin/ls -d /usr/lib/X11/fonts/*`; 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 diff --git a/rc/rc.multi b/rc/rc.multi index 201972c..1061fbf 100755 --- a/rc/rc.multi +++ b/rc/rc.multi @@ -6,6 +6,11 @@ # Load configuration . /etc/rc.conf +# Run fixes startup file +if [ -x /etc/rc.fix ]; then + /etc/rc.fix +fi + # Start services if [ "${SERVICES[*]}" ]; then echo -n "starting services:"