From 05a23f1c568b6ab83402aca9e655cddebc862da1 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 12 Jun 2022 16:53:43 +0800
Subject: [PATCH] update linux patch, fix pwm7 & pwm8 overlay result ethernet not work bug

---
 bsp/rootfs/files/pinloop.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bsp/rootfs/files/pinloop.sh b/bsp/rootfs/files/pinloop.sh
index ab61087..6f5ec9f 100755
--- a/bsp/rootfs/files/pinloop.sh
+++ b/bsp/rootfs/files/pinloop.sh
@@ -1,9 +1,9 @@
-#!/bin/bash
+#!/bin/sh
 # 40 Pin Header GPIO loop test script, it based on pinctrl shell script
 
 function loop_test()
 {
-   if [ $# != 3 ] ; then
+   if [[ $# != 3 ]] ; then
       echo "ERROR: Invalid input arguments"
       return 1;
    fi 
@@ -13,7 +13,7 @@
    res=`pinctrl -i $2`
 
    printf "$1 out [$level] --> $2 in [$res] : "
-   if [ $level == $res ]  ; then
+   if [[ $level == $res ]]  ; then
       printf " [  OK  ]\n"
    else
       printf " [ FAIL ]\n"
@@ -22,7 +22,7 @@
 }
 
 
-if [ $# != 2 ] ; then
+if [[ $# != 2 ]] ; then
    echo ""
    echo "Usage  : $0 Pin1 Pin2"
    echo "Example: $0 GPIO01_IO10 GPIO01_IO11" 

--
Gitblit v1.9.1