]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 30 Nov 2020 22:05:57 +0000 (12:05 -1000)
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>
(cherry picked from commit b7f0ec6eafb35117eaf4eeef281162080f0ca79a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
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.