summaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-06 15:03:49 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-06 15:03:49 -0300
commit10c7127d5ff693a8f0c9671b9d3253315f2095be (patch)
tree07cc635750c86f96e3544f47deebdfd9bb50dcb7 /rc.d
parent9e13f3aecd7c8c716929be9d9faf8725e3065a0e (diff)
parent86b2cb99028d81a6cb608f09e1a31bc7744a991c (diff)
Merge branch 'master' of git://projects.archlinux.org/initscripts2012.05.2
Conflicts: Makefile
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d9
1 files changed, 4 insertions, 5 deletions
diff --git a/rc.d b/rc.d
index aed2e42..0cfbdaf 100755
--- a/rc.d
+++ b/rc.d
@@ -1,6 +1,5 @@
#!/bin/bash
-NEED_ROOT=0 # this script can be run without be root
. /etc/rc.conf
. /etc/rc.d/functions
@@ -41,10 +40,10 @@ not exist or is not executable.${C_CLEAR}\n" >&2
exit 2
fi
# check filter
- ((${filter[started]} == 1)) && ck_daemon "$daemon" && continue
- ((${filter[stopped]} == 1)) && ! ck_daemon "$daemon" && continue
- ((${filter[auto]} == 1)) && ck_autostart "$daemon" && continue
- ((${filter[noauto]} == 1)) && ! ck_autostart "$daemon" && continue
+ (( ${filter[started]} )) && ck_daemon "$daemon" && continue
+ (( ${filter[stopped]} )) && ! ck_daemon "$daemon" && continue
+ (( ${filter[auto]} )) && ck_autostart "$daemon" && continue
+ (( ${filter[noauto]} )) && ! ck_autostart "$daemon" && continue
new_daemons+=("$daemon")
done
daemons=("${new_daemons[@]}")