]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 7 Jan 2021 07:20:51 +0000 (15:20 +0800)
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>
(cherry picked from commit 45ba0ca0352bca46f974d28781ac935d8e9ec3ea)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
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