diff options
Diffstat (limited to 'rc.multi')
-rwxr-xr-x | rc.multi | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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 |