From: nbd Date: Thu, 9 Nov 2006 21:43:04 +0000 (+0000) Subject: fix for multiple extra commands in init scripts using rc.common X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/3aa8ae94b0ab5e359e19b29e1f4106cb7941e47e 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 --- diff --git a/package/base-files/default/etc/rc.common b/package/base-files/default/etc/rc.common index 6066afbd5..7180b0f7f 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;;