2007-02-22 23:46:50 +01:00
|
|
|
#! /bin/sh
|
|
|
|
. /etc/rc.conf
|
|
|
|
. /etc/rc.d/functions
|
|
|
|
|
|
|
|
mkdir -p /dev/pts
|
|
|
|
mkdir -p /dev/shm
|
|
|
|
mount /dev/pts
|
|
|
|
mount /dev/shm
|
|
|
|
|
|
|
|
# anything more serious than KERN_WARNING goes to the console
|
|
|
|
if grep -qw " verbose" /proc/cmdline; then
|
|
|
|
/bin/dmesg -n 8
|
|
|
|
else
|
|
|
|
/bin/dmesg -n 3
|
|
|
|
fi
|
|
|
|
|
2007-10-22 08:31:53 +02:00
|
|
|
# bring up the loopback interface
|
|
|
|
if [ -d /sys/class/net/lo ]; then
|
|
|
|
stat_busy "Bringing up loopback interface"
|
|
|
|
ifconfig lo 127.0.0.1 up
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
stat_fail
|
|
|
|
else
|
|
|
|
stat_done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2007-02-22 23:46:50 +01:00
|
|
|
# Start daemons
|
|
|
|
for daemon in "${DAEMONS[@]}"; do
|
|
|
|
if [ "$daemon" = "${daemon#!}" ]; then
|
|
|
|
if [ "$daemon" = "${daemon#@}" ]; then
|
|
|
|
/etc/rc.d/$daemon start
|
|
|
|
else
|
|
|
|
stat_bkgd "Starting ${daemon:1}"
|
|
|
|
(/etc/rc.d/${daemon:1} start) &>/dev/null &
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -x /etc/rc.local ]; then
|
|
|
|
/etc/rc.local
|
|
|
|
fi
|
|
|
|
|
|
|
|
# change to / for login shells
|
|
|
|
cd /
|