From: Felix Fietkau Date: Thu, 9 Nov 2006 21:43:04 +0000 (+0000) Subject: fix for multiple extra commands in init scripts using rc.common X-Git-Tag: whiterussian_0.9~87 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=30c21ad3a8e74e12e50247900561dfb5e3383b4e;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix for multiple extra commands in init scripts using rc.common SVN-Revision: 5488 --- diff --git a/openwrt/package/base-files/default/etc/rc.common b/openwrt/package/base-files/default/etc/rc.common index 7e59892d0a..8b478f0dcc 100755 --- a/openwrt/package/base-files/default/etc/rc.common +++ b/openwrt/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;;