From 9b43beb2965812a811dd266a30b2b50f589fd455 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 3 Aug 2009 12:45:15 -0700 Subject: Fix array syntax for DAEMONS loop Whoops! Noticed-by: Florian Pritz Signed-off-by: Aaron Griffin --- rc.single | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.single') diff --git a/rc.single b/rc.single index af2ae16..fd74487 100755 --- a/rc.single +++ b/rc.single @@ -10,7 +10,7 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Find daemons NOT in the DAEMONS array. Shut these down first if [ -d /var/run/daemons ]; then for daemon in $(/bin/ls -1t /var/run/daemons); do - if ! in_array $daemon ${DAEMONS}; then + if ! in_array $daemon ${DAEMONS[@]}; then stop_daemon $daemon fi done -- cgit v1.2.3