layerscape: update build guide in README
[openwrt/staging/kaloz.git] / package / network / utils / layerscape / restool / patches / 0005-scripts-use-proper-arithmetic-operation-syntax.patch
1 From 899d6c74286cbc672e1bad1abd7eff15b1b7298d Mon Sep 17 00:00:00 2001
2 From: Ioana Ciornei <ioana.ciornei@nxp.com>
3 Date: Tue, 24 Oct 2017 16:29:49 +0000
4 Subject: [PATCH 05/12] scripts: use proper arithmetic operation syntax
5
6 Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
7 ---
8 scripts/ls-main | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/scripts/ls-main b/scripts/ls-main
12 index 72f6c77..a39df2c 100755
13 --- a/scripts/ls-main
14 +++ b/scripts/ls-main
15 @@ -966,7 +966,7 @@ fi
16
17 # Check compatibility with MC version
18 mc_major=$($restool --mc-version | cut -f2 -d':' | cut -f1 -d'.' | tr -d ' ')
19 -if (( $mc_major != 10 )); then
20 +if [ $mc_major != 10 ]; then
21 echo "Restool wrapper scripts only support the latest major MC version\n"
22 echo "that currently is MC10.x. Use with caution."
23 fi
24 --
25 2.14.1
26