mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
change rc.sysinit to new initscript layout
This commit is contained in:
parent
a7ba5c9129
commit
f1e531bd91
1 changed files with 26 additions and 26 deletions
|
@ -2,41 +2,41 @@
|
||||||
. /etc/rc.conf
|
. /etc/rc.conf
|
||||||
. /etc/rc.d/functions
|
. /etc/rc.d/functions
|
||||||
|
|
||||||
mkdir -p /dev/pts
|
echo " "
|
||||||
mkdir -p /dev/shm
|
printhl "Arch Linux\n"
|
||||||
mount /dev/pts
|
printhl "${C_H2}http://www.archlinux.org"
|
||||||
mount /dev/shm
|
printsep
|
||||||
|
|
||||||
|
run_hook sysinit_start
|
||||||
|
|
||||||
# anything more serious than KERN_WARNING goes to the console
|
# anything more serious than KERN_WARNING goes to the console
|
||||||
if grep -qw " verbose" /proc/cmdline; then
|
# 'verbose' cmdline parameter enables more messages
|
||||||
/bin/dmesg -n 8
|
if /bin/grep -q " verbose" /proc/cmdline; then
|
||||||
|
/bin/dmesg -n 8
|
||||||
else
|
else
|
||||||
/bin/dmesg -n 3
|
/bin/dmesg -n 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# bring up the loopback interface
|
# bring up the loopback interface
|
||||||
if [ -d /sys/class/net/lo ]; then
|
[[ -d /sys/class/net/lo ]] && \
|
||||||
stat_busy "Bringing up loopback interface"
|
status "Bringing up loopback interface" /sbin/ifconfig lo 127.0.0.1 up
|
||||||
ifconfig lo 127.0.0.1 up
|
|
||||||
if [ $? -ne 0 ]; then
|
/bin/dmesg >| /var/log/dmesg.log
|
||||||
stat_fail
|
|
||||||
else
|
# Load sysctl variables if sysctl.conf is present
|
||||||
stat_done
|
[[ -r /etc/sysctl.conf ]] && /sbin/sysctl -q -p &>/dev/null
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start daemons
|
# Start daemons
|
||||||
for daemon in "${DAEMONS[@]}"; do
|
for daemon in "${DAEMONS[@]}"; do
|
||||||
if [ "$daemon" = "${daemon#!}" ]; then
|
case ${daemon:0:1} in
|
||||||
if [ "$daemon" = "${daemon#@}" ]; then
|
'!') continue;; # Skip this daemon.
|
||||||
/etc/rc.d/$daemon start
|
'@') start_daemon_bkgd "${daemon#@}";;
|
||||||
else
|
*) start_daemon "$daemon";;
|
||||||
stat_bkgd "Starting ${daemon:1}"
|
esac
|
||||||
(/etc/rc.d/${daemon:1} start) &>/dev/null &
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -x /etc/rc.local ]; then
|
if [[ -x /etc/rc.local ]]; then
|
||||||
/etc/rc.local
|
/etc/rc.local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
run_hook sysinit_end
|
||||||
|
|
Loading…
Reference in a new issue