summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-08-03 12:45:15 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-03 12:45:15 -0700
commit9b43beb2965812a811dd266a30b2b50f589fd455 (patch)
tree6e305a1b224c3ba19ad253e8088232cbb25861e4
parent0dd360f4d0c880a0e9b1a18354196740626ad123 (diff)
Fix array syntax for DAEMONS loop
Whoops! Noticed-by: Florian Pritz <f-p@gmx.at> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xrc.shutdown2
-rwxr-xr-xrc.single2
2 files changed, 2 insertions, 2 deletions
diff --git a/rc.shutdown b/rc.shutdown
index ef13dec..39f762e 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -26,7 +26,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
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