aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-06-07 16:36:03 +0200
committerThomas Bächler <thomas@archlinux.org>2009-06-07 16:36:03 +0200
commitd42decabd30ff8031a02cb94ddf98a86a38eecdc (patch)
tree402b630fd97da6372c5dedd19d56c40d79f24efe /rc.single
parentf4a0e350119794972bb1d022a6364fd10a0d80e9 (diff)
downloadinitscripts-d42decabd30ff8031a02cb94ddf98a86a38eecdc.tar.xz
Fix array count/walk in rc.shutdown and rc.single, see #13263
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.single b/rc.single
index e0cfbe8..6eaf063 100755
--- a/rc.single
+++ b/rc.single
@@ -8,7 +8,7 @@
if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
# Shutdown daemons
- let i=${#DAEMONS[@]}
+ let i=${#DAEMONS[@]}-1
while [ $i -ge 0 ]; do
if [ "${DAEMONS[$i]:0:1}" != '!' ]; then
ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}