summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-12-17 14:54:37 -0800
committerSteve Sakoman <steve@sakoman.com>2021-01-04 04:50:23 -1000
commit4e7338614f9c02a0a846645a51a78ddb69253f60 (patch)
treef22a9be506f41f462aef6301c990e1fe97717575
parenta4339b1c958b736be951ae3142e6be72702ecad2 (diff)
downloadopenembedded-core-4e7338614f9c02a0a846645a51a78ddb69253f60.tar.gz
openembedded-core-4e7338614f9c02a0a846645a51a78ddb69253f60.tar.bz2
openembedded-core-4e7338614f9c02a0a846645a51a78ddb69253f60.zip
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: Steve Sakoman <steve@sakoman.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