From: Fedor Ross Date: Wed, 18 Nov 2020 17:13:14 +0000 (+0100) Subject: sysvinit: remove bashism to be compatible with dash X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~9526 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f0ec6eafb35117eaf4eeef281162080f0ca79a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git sysvinit: remove bashism to be compatible with dash Replace the equality operator '==' with '=' inside of '[]' to be compatible with bash and dash. Signed-off-by: Fedor Ross Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/sysvinit/sysvinit/rc b/meta/recipes-core/sysvinit/sysvinit/rc index fd1fdd26ba2..d0d31498215 100755 --- a/meta/recipes-core/sysvinit/sysvinit/rc +++ b/meta/recipes-core/sysvinit/sysvinit/rc @@ -63,7 +63,7 @@ startup() { stty onlcr 0>&1 # Limit stack size for startup scripts - [ "$STACK_SIZE" == "" ] || ulimit -S -s $STACK_SIZE + [ "$STACK_SIZE" = "" ] || ulimit -S -s $STACK_SIZE # Now find out what the current and what the previous runlevel are.