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 6066afbd5519c0a1a2bc693589e8427eea654183..7180b0f7fa9188c05a94d33881c0668060b89a6d 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;;