]> code.ossystems Code Review - openembedded-core.git/commitdiff
sysvinit: remove bashism to be compatible with dash
authorFedor Ross <fedor.ross@ifm.com>
Wed, 18 Nov 2020 17:13:14 +0000 (18:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Nov 2020 10:27:38 +0000 (10:27 +0000)
Replace the equality operator '==' with '=' inside of '[]' to be
compatible with bash and dash.

Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/sysvinit/sysvinit/rc

index fd1fdd26ba2bc966f2e9399805bab28818e427ce..d0d314982156dbfa22b36a1c26eaea4c3f8585ea 100755 (executable)
@@ -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.