9945cd438a6ee188a7368b2f0bc596fb1951f335
[openwrt/openwrt.git] /
1 From 66ae6e5313da8be5742a502c0d7027689e84a17d Mon Sep 17 00:00:00 2001
2 From: Ioana Ciornei <ioana.ciornei@nxp.com>
3 Date: Wed, 25 Oct 2017 11:30:08 +0000
4 Subject: [PATCH 10/12] scripts: use proper arithmetic operations
5
6 Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
7 ---
8 scripts/ls-main | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 diff --git a/scripts/ls-main b/scripts/ls-main
12 index 7ce73f0..0dcd2fa 100755
13 --- a/scripts/ls-main
14 +++ b/scripts/ls-main
15 @@ -409,7 +409,7 @@ process_addmux() {
16
17 # check the status
18 object_exists $container $dpdmux
19 - if (( $object_exists_status == 1 )); then
20 + if [ $object_exists_status == 1 ]; then
21
22 if [ "$root_c" == "$container" ]; then
23 evb=$(ls $SYS_DPRC/"$root_c"/"$dpdmux"/net/ | grep -v "p")
24 @@ -598,7 +598,7 @@ process_addsw() {
25
26 # check the status
27 object_exists $container $dpsw
28 - if (( $object_exists_status == 1 )); then
29 + if [ $object_exists_status == 1 ]; then
30 echo "Created ETHSW object $dpsw with ${num_ifs} ports"
31
32 if [ $num_ifs -gt $ifcnt ]; then
33 @@ -850,7 +850,7 @@ process_addni() {
34
35 # check the status
36 object_exists $container $dpni
37 - if (( $object_exists_status == 1 )); then
38 + if [ $object_exists_status == 1 ]; then
39 if [ "$root_c" == "$container" ]; then
40 ni=$(ls $SYS_DPRC/"$root_c"/"$dpni"/net/)
41 fi
42 --
43 2.14.1
44