diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-09 21:43:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-09 21:43:04 +0000 |
commit | 1dc538c39a98a51653671cdb3ac9837922e30e2f (patch) | |
tree | b278196220d3d9bbf9477ce31ecbc7d1ddfacb49 | |
parent | 7ea7acad21ee1a065684125bffa4079ed86cac3d (diff) | |
download | mtk-20170518-1dc538c39a98a51653671cdb3ac9837922e30e2f.zip mtk-20170518-1dc538c39a98a51653671cdb3ac9837922e30e2f.tar.gz mtk-20170518-1dc538c39a98a51653671cdb3ac9837922e30e2f.tar.bz2 |
fix for multiple extra commands in init scripts using rc.common
SVN-Revision: 5488
-rwxr-xr-x | package/base-files/default/etc/rc.common | 2 |
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 6066afb..7180b0f 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;; |