From f27814c86182ffa6f0869557fdc1176b16ab18a0 Mon Sep 17 00:00:00 2001
From: Kenneth Johansson <kenneth@southpole.se>
Date: Fri, 11 Jan 2019 17:09:02 +0100
Subject: [PATCH] iop ssh_upgrade: lost a $

it compared a string instead of a variable.
---
 scripts/iopupgrade.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/iopupgrade.sh b/scripts/iopupgrade.sh
index f4385602052..fff9a1998a2 100644
--- a/scripts/iopupgrade.sh
+++ b/scripts/iopupgrade.sh
@@ -50,7 +50,7 @@ function ssh_upgrade {
     upd_fw=""
     upd_host="192.168.1.1"
 
-    while getopts "f:hnxt:" opt; do
+    while getopts "f:hnxt:i" opt; do
 	case $opt in
 	    n)
 		upd_noreboot=1
@@ -74,6 +74,10 @@ function ssh_upgrade {
 	    t)
 		upd_host=$OPTARG
 		;;
+	    i)
+		echo "not supported"
+		return
+		;;
 	    h)
 		upd_usage
 		exit 1
@@ -85,7 +89,7 @@ function ssh_upgrade {
 	esac
     done
 
-    if [ -n "upd_fw" ]
+    if [ -n "$upd_fw" ]
     then
 	upd_fw_base=$(basename $upd_fw);
     else
-- 
GitLab