fix for multiple extra commands in init scripts using rc.common
authorFelix Fietkau <nbd@openwrt.org>
Thu, 9 Nov 2006 21:43:04 +0000 (21:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 9 Nov 2006 21:43:04 +0000 (21:43 +0000)
SVN-Revision: 5488

package/base-files/default/etc/rc.common

index 6066afb..7180b0f 100755 (executable)
@@ -67,7 +67,7 @@ action="$2"
 
 cmds=
 for cmd in $EXTRA_COMMANDS; do
-       cmds="$cmd) $cmd;;"
+       cmds="${cmds:+$cmds$N}$cmd) $cmd;;"
 done
 eval "case \"\$action\" in
        start) start;;