mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
34 lines
611 B
Text
34 lines
611 B
Text
|
#! /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
|
||
|
|
||
|
# 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 /
|