31 Jul
2011
31 Jul
'11
12:35 p.m.
We still default to listing all daemons if none are specified. Signed-off-by: Dave Reisner <dreisner@archlinux.org> --- rc.d | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/rc.d b/rc.d index a7b214e..bfc4719 100755 --- a/rc.d +++ b/rc.d @@ -33,7 +33,12 @@ case $1 in list) shift cd /etc/rc.d/ - for d in *; do + if (( $# )); then + daemons=("$@") + else + daemons=(*) + fi + for d in "${daemons[@]}"; do have_daemon "$d" || continue # print running / stopped satus if ! ck_daemon "$d"; then -- 1.7.6