From: Munkyu Im Date: Tue, 8 Sep 2015 04:16:20 +0000 (+0900) Subject: script: fix else statement X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8f107b4084c117150b825ae57f2a5988ee80a33;p=sdk%2Femulator%2Fqemu.git 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 --- 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