2009-10-08 03:40:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# /etc/rc.multi
|
|
|
|
#
|
|
|
|
|
|
|
|
. /etc/rc.conf
|
|
|
|
. /etc/rc.d/functions
|
|
|
|
|
2010-04-05 01:16:29 +00:00
|
|
|
run_hook multi_start
|
|
|
|
|
2009-10-08 03:40:19 +00:00
|
|
|
# Load sysctl variables if sysctl.conf is present
|
2011-05-26 04:45:00 +00:00
|
|
|
[[ -r /etc/sysctl.conf ]] && /sbin/sysctl -q -p &>/dev/null
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
# Start daemons
|
|
|
|
for daemon in "${DAEMONS[@]}"; do
|
2011-05-26 04:45:00 +00:00
|
|
|
case ${daemon:0:1} in
|
|
|
|
'!') continue;; # Skip this daemon.
|
|
|
|
'@') start_daemon_bkgd "${daemon#@}";;
|
|
|
|
*) start_daemon "$daemon";;
|
|
|
|
esac
|
2009-10-08 03:40:19 +00:00
|
|
|
done
|
|
|
|
|
2011-05-26 04:45:00 +00:00
|
|
|
if [[ -x /etc/rc.local ]]; then
|
2009-10-08 03:40:19 +00:00
|
|
|
/etc/rc.local
|
|
|
|
fi
|
|
|
|
|
2010-04-05 01:16:29 +00:00
|
|
|
run_hook multi_end
|
|
|
|
|
2011-05-26 04:45:00 +00:00
|
|
|
/bin/touch /var/log/boot
|
|
|
|
kill `/bin/cat /run/bootlogd.pid`
|
|
|
|
/bin/rm /run/bootlogd.pid
|
|
|
|
|
|
|
|
# vim: set ts=2 sw=2 noet:
|