From d8f107b4084c117150b825ae57f2a5988ee80a33 Mon Sep 17 00:00:00 2001 From: Munkyu Im Date: Tue, 8 Sep 2015 13:16:20 +0900 Subject: [PATCH] script: fix else statement "elif" needs condition, but in this case do not need condition so replace this with "else". Change-Id: Id2966379d79c579c15f345255a59220f49f3cbd2 Signed-off-by: Munkyu Im --- tizen/src/scripts/emulator-ifup-linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tizen/src/scripts/emulator-ifup-linux.sh b/tizen/src/scripts/emulator-ifup-linux.sh index 44b0522996..e111dcffad 100755 --- a/tizen/src/scripts/emulator-ifup-linux.sh +++ b/tizen/src/scripts/emulator-ifup-linux.sh @@ -5,7 +5,7 @@ if [ "$2" == "" ];then NETMASK="" -elif +else NETMASK=`ifconfig $2 | grep "inet " | awk '{print $4}' | cut -d : -f2` fi GW=`netstat -rn | grep ^0.0.0.0 | awk '{print $2}'` @@ -42,7 +42,7 @@ if [ "$NETMASK" == "" ];then echo "netmask is NULL" echo ifconfig $BR $BASEIPADDR ifconfig $BR $BASEIPADDR -elif +else echo ifconfig $BR $BASEIPADDR netmask $NETMASK ifconfig $BR $BASEIPADDR netmask $NETMASK fi -- 2.34.1