summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-12-17 14:54:37 -0800
committerAnuj Mittal <anuj.mittal@intel.com>2021-01-07 15:20:51 +0800
commit42972452191b47802b460b0e6a3044d4621de6c1 (patch)
treeb529866d2bf3a11616524f18aefe66c49fbd5933
parent9be818787872a68f8ad669e6db372c12376f5ee8 (diff)
downloadopenembedded-core-42972452191b47802b460b0e6a3044d4621de6c1.tar.gz
initscripts: use quotes for shell variable comparision
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>
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/checkroot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
index 02f0351fcb..a63e71b780 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh
@@ -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