diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-12-17 14:54:37 -0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-01-07 15:20:51 +0800 |
commit | 42972452191b47802b460b0e6a3044d4621de6c1 (patch) | |
tree | b529866d2bf3a11616524f18aefe66c49fbd5933 /meta | |
parent | 9be818787872a68f8ad669e6db372c12376f5ee8 (diff) | |
download | openembedded-core-contrib-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>
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/checkroot.sh | 2 |
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 |