aboutsummaryrefslogtreecommitdiff
path: root/rc.multi
diff options
context:
space:
mode:
Diffstat (limited to 'rc.multi')
-rwxr-xr-xrc.multi16
1 files changed, 7 insertions, 9 deletions
diff --git a/rc.multi b/rc.multi
index a7ea703..660f649 100755
--- a/rc.multi
+++ b/rc.multi
@@ -9,20 +9,18 @@
run_hook multi_start
# Load sysctl variables if sysctl.conf is present
-[ -r /etc/sysctl.conf ] && /sbin/sysctl -q -p &>/dev/null
+[[ -r /etc/sysctl.conf ]] && /sbin/sysctl -q -p &>/dev/null
# Start daemons
for daemon in "${DAEMONS[@]}"; do
- if [ "$daemon" = "${daemon#!}" ]; then
- if [ "$daemon" = "${daemon#@}" ]; then
- start_daemon $daemon
- else
- start_daemon_bkgd ${daemon:1}
- fi
- fi
+ case ${daemon:0:1} in
+ '!') continue;; # Skip this daemon.
+ '@') start_daemon_bkgd "${daemon#@}";;
+ *) start_daemon "$daemon";;
+ esac
done
-if [ -x /etc/rc.local ]; then
+if [[ -x /etc/rc.local ]]; then
/etc/rc.local
fi