initscripts: use quotes for shell variable comparision

Helps to execute it with busybox shell

(From OE-Core rev: 4e7338614f9c02a0a846645a51a78ddb69253f60)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 45ba0ca0352bca46f974d28781ac935d8e9ec3ea)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2020-12-17 14:54:37 -08:00
committed by Richard Purdie
parent a297097cff
commit 462b69b0c6

View File

@@ -74,7 +74,7 @@ test "$VERBOSE" != no && echo "Activating swap"
#
# Check the root filesystem.
#
if test -f /fastboot || test $rootcheck = no
if test -f /fastboot || test "$rootcheck" = "no"
then
test $rootcheck = yes && echo "Fast boot, no filesystem check"
else