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
6 Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
8 scripts/ls-main | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
11 diff --git a/scripts/ls-main b/scripts/ls-main
12 index 7ce73f0..0dcd2fa 100755
15 @@ -409,7 +409,7 @@ process_addmux() {
18 object_exists $container $dpdmux
19 - if (( $object_exists_status == 1 )); then
20 + if [ $object_exists_status == 1 ]; then
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() {
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"
32 if [ $num_ifs -gt $ifcnt ]; then
33 @@ -850,7 +850,7 @@ process_addni() {
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/)