skeleton: fix atstk1005, ststk100x and atngw100 for POSIX compliance
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>
Mon, 20 Sep 2010 21:26:07 +0000 (23:26 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 30 Sep 2010 20:08:56 +0000 (22:08 +0200)
Using two '=' for string comparison is a bashism.
Revert to using one, as stated in POSIX 1003.1-2008.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
target/device/Atmel/atngw100/target_skeleton/etc/init.d/S99gpio
target/device/Atmel/atstk1005/target_skeleton/etc/init.d/S99gpio
target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S99gpio

index ea077846caa8b0774b8f638e188ff75cc54980e1..3a17740124cc909a58f1deec54b1147e5dab5caa 100755 (executable)
@@ -8,9 +8,9 @@ fi
 
 BOARD=`cat /etc/release | cut -d ' ' -f1`
 
-if [ "${BOARD}" == "" ]; then
+if [ "${BOARD}" = "" ]; then
        echo "none";
-elif [ "${BOARD}" == "NGW100" ]; then
+elif [ "${BOARD}" = "NGW100" ]; then
        echo "'${BOARD}'"
 
        echo -n "  boot LED: "
@@ -111,7 +111,7 @@ elif [ "${BOARD}" == "NGW100" ]; then
                echo "failed"
                exit 1
        fi
-elif [ "${BOARD}" == "STK1000" ]; then # end NGW100
+elif [ "${BOARD}" = "STK1000" ]; then # end NGW100
        echo "'${BOARD}'"
 
        echo -n "  switches: "
index 967761aafda85540903e8f61255e1c3cbee7d817..7c07f280153345d37924b9d86ceb8a6d85e69f57 100644 (file)
@@ -8,9 +8,9 @@ fi
 
 BOARD=`cat /etc/release | cut -d ' ' -f1`
 
-if [ "${BOARD}" == "" ]; then
+if [ "${BOARD}" = "" ]; then
        echo "none";
-elif [ "${BOARD}" == "NGW" ]; then
+elif [ "${BOARD}" = "NGW" ]; then
        echo "'${BOARD}'"
 
        echo -n "  boot LED: "
@@ -111,7 +111,7 @@ elif [ "${BOARD}" == "NGW" ]; then
                echo "failed"
                exit 1
        fi
-elif [ "${BOARD}" == "STK1000" ]; then # end NGW
+elif [ "${BOARD}" = "STK1000" ]; then # end NGW
        echo "'${BOARD}'"
 
        echo -n "  switches: "
index 967761aafda85540903e8f61255e1c3cbee7d817..7c07f280153345d37924b9d86ceb8a6d85e69f57 100644 (file)
@@ -8,9 +8,9 @@ fi
 
 BOARD=`cat /etc/release | cut -d ' ' -f1`
 
-if [ "${BOARD}" == "" ]; then
+if [ "${BOARD}" = "" ]; then
        echo "none";
-elif [ "${BOARD}" == "NGW" ]; then
+elif [ "${BOARD}" = "NGW" ]; then
        echo "'${BOARD}'"
 
        echo -n "  boot LED: "
@@ -111,7 +111,7 @@ elif [ "${BOARD}" == "NGW" ]; then
                echo "failed"
                exit 1
        fi
-elif [ "${BOARD}" == "STK1000" ]; then # end NGW
+elif [ "${BOARD}" = "STK1000" ]; then # end NGW
        echo "'${BOARD}'"
 
        echo -n "  switches: "