fix for multiple extra commands in init scripts using rc.common
[openwrt.git] / 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;;