]> code.ossystems Code Review - openembedded-core.git/commitdiff
initscripts: use quotes for shell variable comparision
authorKhem Raj <raj.khem@gmail.com>
Thu, 17 Dec 2020 22:54:37 +0000 (14:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Dec 2020 00:03:01 +0000 (00:03 +0000)
Helps to execute it with busybox shell

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh

index 02f0351fcb35798040ab8b8e15ad1b28653c4cb2..a63e71b7806c2e121730903e22b8a472a2842648 100755 (executable)
@@ -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