rc: added /etc/rc.fix

This commit is contained in:
Simone Rota 2007-03-14 19:21:15 +00:00
parent 266326ffc0
commit 217c181530
5 changed files with 35 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

24
rc/rc.fix Executable file
View File

@ -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

View File

@ -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:"