From 1dc538c39a98a51653671cdb3ac9837922e30e2f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 9 Nov 2006 21:43:04 +0000 Subject: [PATCH] fix for multiple extra commands in init scripts using rc.common SVN-Revision: 5488 --- package/base-files/default/etc/rc.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;; -- 2.30.2