From 0cf9ffc27885a1ae81a8c32aa39e3553e34aa6ac Mon Sep 17 00:00:00 2001 From: Emanuel Rietveld Date: Thu, 28 May 2020 02:45:58 +0200 Subject: [PATCH] rc.initial: handle -c command with arguments before this change rc.initial only passes the first -c parameter. instead passing every parameter allows you to run complex commands over ssh even if the shell is set to /etc/rc.initial implements #10603 --- src/etc/rc.initial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/rc.initial b/src/etc/rc.initial index 0a44f16122..196690ab1e 100755 --- a/src/etc/rc.initial +++ b/src/etc/rc.initial @@ -49,7 +49,7 @@ fi while [ $# -gt 0 ]; do case $1 in -c ) shift - /bin/sh -c $1 + /bin/sh -c "$@" exit ;; * ) -- 2.23.0