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

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

index 7e59892d0ac296a2467af6ba277c6f8364f532f3..8b478f0dcc4f0182e6ce34b81b7ae17fc0a38274 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;;