summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-09 21:43:04 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-09 21:43:04 +0000
commit3aa8ae94b0ab5e359e19b29e1f4106cb7941e47e (patch)
tree57aa49d81b305d307ee6c97aa4ae17a624295fef
parentca001450593eeb382342680f54d62b8debdbf3ff (diff)
fix for multiple extra commands in init scripts using rc.common
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5488 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/default/etc/rc.common2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/default/etc/rc.common b/package/base-files/default/etc/rc.common
index 6066afbd55..7180b0f7fa 100755
--- a/package/base-files/default/etc/rc.common
+++ b/package/base-files/default/etc/rc.common
@@ -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;;