fix for multiple extra commands in init scripts using rc.common
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Nov 2006 21:43:04 +0000 (21:43 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Nov 2006 21:43:04 +0000 (21:43 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5488 3c298f89-4303-0410-b956-a3cf2f4a3e73

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;;
This page took 0.026382 seconds and 4 git commands to generate.