soo, ich hab nun auch mal ein wenig herumgespielt und so ganz zufrieden bin ich noch nicht:
http://img27.imageshack.us/img27/8521/bootchart.png
meine rc.sysinit habe ich ziemlich ausgereizt:
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
/bin/mount -n -t ramfs none /dev &
/bin/mount -n -t proc none /proc &
/bin/mknod /dev/null c 1 3
/bin/mknod /dev/zero c 1 5
/bin/mknod /dev/console c 5 1
/bin/mount -n -t sysfs none /sys &
/bin/mknod /dev/sda5 b 8 5
/bin/mknod /dev/sda6 b 8 6
/bin/mknod /dev/sda7 b 8 7
/bin/mknod /dev/sda8 b 8 8
/bin/mknod /dev/sda9 b 8 9
/bin/mknod /dev/sda11 b 8 11
/bin/mkdir /dev/pts &
/bin/mkdir /dev/shm &
/bin/cp -a /lib/udev/devices/* /dev/
if [ -f /etc/localtime ]; then
/sbin/hwclock --hctosys --localtime --directisa --noadjfile &
fi
echo > /proc/sys/kernel/hotplug
if [ -x /sbin/udevadm -a -d /sys/block ]; then
stat_busy "Starting UDev Daemon"
/sbin/udevd --daemon &
/sbin/udevadm trigger &
stat_done
else
status "Using static /dev filesystem" true
fi
/sbin/udevadm settle &
if [ -d /sys/class/net/lo ]; then
stat_busy "Bringing up loopback interface"
/sbin/ifconfig lo 127.0.0.1 up
if [ $? -ne 0 ]; then
stat_fail
else
stat_done
fi
fi
status "Mounting Root Read-only" /bin/mount -n -o remount,ro /
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
/bin/rm -f /etc/mtab*
/bin/mount -o remount,rw /
if [ -e /proc/mounts ]; then
/bin/grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts >> /etc/mtab
fi
/bin/mount -a
stat_done
status "Activating Swap" /sbin/swapon -a &
stat_busy "Configuring System Clock"
if [ ! -f /var/lib/hwclock/adjtime ]; then
echo "0.0 0 0.0" > /var/lib/hwclock/adjtime
fi
/bin/rm -f /etc/localtime
/bin/cp "/usr/share/zoneinfo/Europe/Berlin" /etc/localtime
/sbin/hwclock --hctosys --localtime --directisa --noadjfile &
stat_done
if [ -f /var/run/random-seed ]; then
stat_busy "Initializing Random Seed"
/bin/cat /var/run/random-seed >/dev/urandom &
stat_done
fi
stat_busy "Removing Leftover Files"
/bin/rm -f /etc/nologin &>/dev/null &
/bin/rm -f /etc/shutdownpid &>/dev/null &
/bin/rm -f /var/lock/* &>/dev/null &
/bin/rm -rf /tmp/* /tmp/.* &>/dev/null &
(cd /var/run && /usr/bin/find . ! -type d -exec /bin/rm -f -- {} \; )
: > /var/run/utmp
/bin/mkdir /tmp/.X11-unix && /bin/chmod 1777 /tmp/.X11-unix &
stat_done
status "Setting Hostname: bluescreen" /bin/hostname bluescreen
status "Updating Module Dependencies" /sbin/depmod -A &
: >/etc/profile.d/locale.sh
/bin/chmod 755 /etc/profile.d/locale.sh
stat_busy "Setting Locale: de_DE.utf8"
echo "export LANG=de_DE.utf8" >>/etc/profile.d/locale.sh
stat_done
status "Loading Keyboard Map: de-latin1-nodeadkeys" /bin/loadkeys -q -u de-latin1-nodeadkeys &
for i in $(/usr/bin/seq 0 4); do
printf "\e(K" > /dev/vc/${i}
done
echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e(K"; fi' >>/etc/profile.d/locale.sh
stat_done
kann mir jemand sagen, wieso die hwclock meine cpu so belastet und dies auch gleich zweimal (kann ich eine aus der sysinit streichen? habs bisher noch nicht geschafft)
und die ganzen hald daemons brauch ich doch auch nicht wirklich, was kann ich da machen?
auch für sonstige tipps bin ich dankbar 🙂