archboot/etc/rc.sysinit
Tobias Powalowski ddd268c971 'upgpkg: added torrent creation to scripts, added latest initscript changes, updated udev.rules,
unload already loaded intel wireless drivers first, added release name to config files instead of rc.sysinit check'
2007-10-22 06:31:53 +00:00

45 lines
No EOL
810 B
Bash
Executable file

#! /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
# 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
# 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 /